From: Bastian Dehn Date: Wed, 7 Nov 2018 18:53:15 +0000 (+0100) Subject: add: check images path exists X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=95f08e760fd0915a1bc1e997cc73fe18bafcde49;p=simple-backup.git add: check images path exists --- diff --git a/backup b/backup index a2489a5..06a294e 100755 --- 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()