]> arthur.barton.de Git - backup-script.git/commitdiff
Fix error handling if target directory can't be created
authorAlexander Barton <alex@barton.de>
Thu, 26 Feb 2015 13:42:37 +0000 (14:42 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 26 Feb 2015 13:42:37 +0000 (14:42 +0100)
bin/backup-script

index 4ad38e087149084b8361c9c795e597b2c29b1941..97cb941013f12c04d7340968f49eb403833035e6 100755 (executable)
@@ -194,7 +194,7 @@ for f in $sys; do
                mkdir -p "$sys_target" >/dev/null 2>&1
                if [ $? -ne 0 ]; then
                        echo "Can't create \"$sys_target\"!? \"$system\" skipped!"
-                       echo continue
+                       echo; continue
                fi
        fi