From: Bastian Dehn Date: Sat, 24 May 2025 10:37:47 +0000 (+0200) Subject: add check config yaml exists X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=112f2e3ad86af36285fd13f10512fe42e24ccb94;p=simple-backup.git add check config yaml exists --- diff --git a/backup b/backup index 191419a..a708ce1 100755 --- a/backup +++ b/backup @@ -460,6 +460,9 @@ main() RESET="\e[0m" command -v yq > /dev/null || errlog "command yq not found" || return $? + [ -f "config.yaml" ] \ + || errlog "file config.yaml not found" \ + || return $? head -2 license echo