From 112f2e3ad86af36285fd13f10512fe42e24ccb94 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 24 May 2025 12:37:47 +0200 Subject: [PATCH] add check config yaml exists --- backup | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3