From 5635c192d39a0262424132372c30da01cc91634b Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 24 May 2025 16:29:13 +0200 Subject: [PATCH] check commands first --- backup | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/backup b/backup index e85e0d6..ca304d2 100755 --- a/backup +++ b/backup @@ -238,7 +238,15 @@ main() echo "⭐ START: backup" - command -v yq > /dev/null || errlog "command yq not found" || return $? + command -v yq > /dev/null \ + || errlog "command yq not found" \ + || return $? + command -v rsync > /dev/null \ + || errlog "command rsync not found" \ + || return $? + command -v ssh > /dev/null \ + || errlog "command ssh not found" \ + || return $? [ -f "config.yaml" ] \ || errlog "file config.yaml not found" \ || return $? -- 2.47.3