fixed bug which always reported error.
authorelijah <elijah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Mon, 21 Mar 2005 17:50:49 +0000 (17:50 +0000)
committerelijah <elijah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Mon, 21 Mar 2005 17:50:49 +0000 (17:50 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@99 758a04ac-41e6-0310-8a23-8373a73cc35d

handlers/svn

index d4c88172def4e3ff83c6072ab4a97803099ef04c..d0e3648075dda23455177e42d3a54fe5e3368550 100644 (file)
@@ -34,7 +34,7 @@ do
     fi
 done
 
-if [ $error ]; then
+if [ $error -eq 1 ]; then
     echo "Error: because of earlier errors, we are leaving svn backups in $tmp instead of $dest"
 else
     if [ -d $dest -a -d $tmp ]; then