]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
check commands first
authorBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 14:29:13 +0000 (16:29 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 14:29:13 +0000 (16:29 +0200)
backup

diff --git a/backup b/backup
index e85e0d649b92e4f871ac2feee33e733a93e09a31..ca304d2d50b45ed4c3ba91f498a69683fbc0f629 100755 (executable)
--- 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 $?