X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=handlers%2Frdiff;h=8faca9d654a827b7d447c48736c1ef1515e7b302;hp=88aeaf3fc7b130ac5ee5e437f7c001a58ef216f5;hb=8589faa7f04c8d29298da45ad17ffecacc4498cb;hpb=c1c28e70326ebf75b37d0594df88adaf24045187 diff --git a/handlers/rdiff b/handlers/rdiff index 88aeaf3..8faca9d 100644 --- a/handlers/rdiff +++ b/handlers/rdiff @@ -155,7 +155,7 @@ fi removestr="${removestr}${destdir}/${label}"; debug "$removestr" -if [ ! $test ]; then +if [ $test = 0 ]; then output=`$removestr 2>&1` if [ $? = 0 ]; then debug $output @@ -221,7 +221,7 @@ execstr="${execstr}--exclude '/*' " execstr="${execstr}$execstr_sourcepart $execstr_destpart" debug "$execstr" -if [ ! $test ]; then +if [ $test = 0 ]; then output=`nice -n $nicelevel su -c "$execstr" 2>&1` if [ $? = 0 ]; then debug $output