]> arthur.barton.de Git - backup-script.git/commitdiff
Execute rsync command using a subshell
authorAlexander Barton <alex@barton.de>
Wed, 4 May 2011 15:47:07 +0000 (17:47 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 4 May 2011 15:47:07 +0000 (17:47 +0200)
bin/backup-script

index 8a04602420c6c187c0f6c17d8ee3cdc15b642670..21685f8c7905a8c93d19f39dc71854fba252c78c 100755 (executable)
@@ -194,7 +194,7 @@ for f in $sys; do
        count_started=$count_started+1
        rm -f "$target/.stamp"
        
-       $cmd; ret=$?
+       $SHELL -c "$cmd"; ret=$?
        echo "code=$ret" >"$target/.stamp"
 
        if [ $ret -eq 20 ]; then