From b7214b60d7c8ddaf24d9957824be3bb52671ea71 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 3 Apr 2025 04:12:17 +0200 Subject: [PATCH] Fix. --- testing/home/desktop/.local/bin/borgplom | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom index a02ab31..04ce673 100755 --- a/testing/home/desktop/.local/bin/borgplom +++ b/testing/home/desktop/.local/bin/borgplom @@ -59,10 +59,11 @@ COMMANDS='backup_keys claim help keys orgpull' _check_args_n() { _N_MAX_ARGS="$1" + shift 1 if [ "$#" -lt "${_N_MAX_ARGS}" ]; then error_exit "missing arguments ($# instead of ${_N_MAX_ARGS}." fi - shift $(calc "${_N_MAX_ARGS} + 1" | cut -f2) + shift "${_N_MAX_ARGS}" if [ "$#" -gt 0 ]; then _MSG="unexpected arguments beyond expected number: $@" error_exit "${_MSG}" -- 2.30.2