]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add check config yaml exists
authorBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 10:37:47 +0000 (12:37 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 10:37:47 +0000 (12:37 +0200)
backup

diff --git a/backup b/backup
index 191419afbf9be083f34c7e31b3306da22c098de2..a708ce13ca6313cda23f9cbeb628b605b22346c7 100755 (executable)
--- 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