]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add: check images path exists
authorBastian Dehn <hhaalo@arcor.de>
Wed, 7 Nov 2018 18:53:15 +0000 (19:53 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 7 Nov 2018 18:53:15 +0000 (19:53 +0100)
backup

diff --git a/backup b/backup
index a2489a51a96facd6d693697af4b182d2481ec720..06a294e11ed8b7f25990a4b28ffde951ac315379 100755 (executable)
--- a/backup
+++ b/backup
@@ -28,6 +28,11 @@ SetDefaultVariables()
        backname="sicherung"
        wunschanzahl=30
        mode="incremental"
+
+       if [ ! -d "$backpath" ]; then
+               printf "ERROR: %s existiert nicht!\n" "$backpath"
+               exit 1
+       fi
 }
 
 ReadArguments()