From 95f08e760fd0915a1bc1e997cc73fe18bafcde49 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Wed, 7 Nov 2018 19:53:15 +0100 Subject: [PATCH] add: check images path exists --- backup | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.39.5