]> arthur.barton.de Git - backup-script.git/commitdiff
backup-script-wrapper: Correctly quote external command call
authorAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 07:41:58 +0000 (09:41 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 07:41:58 +0000 (09:41 +0200)
bin/backup-script-wrapper

index 692c758bd8c377da8c17ff615f7b6ddf30c53f7a..2f81fa8a69b555a1a6c620956fa59f36423fa136 100755 (executable)
@@ -25,7 +25,7 @@ echo " - Host: `hostname -f`" >>"$TMP"
 echo " - User: `id -un`" >>"$TMP"
 echo >>"$TMP"
 
-`dirname "$0"`/backup-script $* >>"$TMP" 2>&1
+"$(dirname "$0")/backup-script" "$@" >>"$TMP" 2>&1
 
 cat "$TMP" | mail -s "$HOST: $NAME results" "$MAILTO"