From bd79bb3880373fda80f0ad7d8b7bf2e1181a3a8a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 3 Apr 2025 02:56:52 +0200 Subject: [PATCH] Fix. --- testing/home/desktop/.local/bin/borgplom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom index 12f3891..003090f 100755 --- a/testing/home/desktop/.local/bin/borgplom +++ b/testing/home/desktop/.local/bin/borgplom @@ -59,10 +59,9 @@ COMMANDS='claim help keys orgpull' _check_args_beyond() { _N_MAX_ARGS="$1" - _CMD="$2" - shift $(calc "${_N_MAX_ARGS} + 2" | cut -f2) + shift $(calc "${_N_MAX_ARGS} + 1" | cut -f2) if [ "$#" -gt 0 ]; then - _MSG="unexpected arguments beyond command '${_CMD}': $@" + _MSG="unexpected arguments beyond command: $@" error_exit "${_MSG}" fi } @@ -227,4 +226,5 @@ done if [ -z "${CMD}" ]; then error_exit_with_usage "unknown command: ${1}" fi +shift 1 "CMDFNC_${CMD}" $@ -- 2.30.2