From: Bastian Dehn Date: Sat, 24 May 2025 14:29:13 +0000 (+0200) Subject: check commands first X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=5635c192d39a0262424132372c30da01cc91634b;p=simple-backup.git check commands first --- 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 $?