From: Christian Heller <c.heller@plomlompom.de> Date: Thu, 3 Apr 2025 02:12:17 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/static/new_day?a=commitdiff_plain;p=config Fix. --- 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}"