home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 2 Apr 2025 21:10:50 +0000 (23:10 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 2 Apr 2025 21:10:50 +0000 (23:10 +0200)
testing/home/desktop/.local/bin/borgplom

index 982ee06fc1f9caa1a57c865a5eb45c167807a98f..ff3d6b0ed88aba67baf64bfe03e64b54400db79c 100755 (executable)
@@ -167,13 +167,14 @@ cmd_orgpull() {
 if [ "$#" -lt 1 ]; then
     error_exit_with_usage "missing command."
 fi
-for CMD in $COMMANDS; do
+for CMD in ${COMMANDS}; do
     if [ "$1" = "${CMD}" ]; then
        break
     fi
+    CMD=
 done
 if [ -z "${CMD}" ]; then
     error_exit_with_usage "unknown command: ${1}"
 fi
 shift 1
-"cmd_$1"
+"cmd_${CMD}"