From: Alexander Barton Date: Wed, 4 May 2011 15:47:07 +0000 (+0200) Subject: Execute rsync command using a subshell X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=backup-script.git;a=commitdiff_plain;h=8046f9e6d8680e02007c0853be2f1f61f7220715 Execute rsync command using a subshell --- diff --git a/bin/backup-script b/bin/backup-script index 8a04602..21685f8 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -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