]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add suppress error for none excludes
authorBastian Dehn <hhaalo@arcor.de>
Thu, 18 Jun 2026 16:18:50 +0000 (18:18 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 18 Jun 2026 16:18:50 +0000 (18:18 +0200)
src/backup

index 26f111a96f6d29e3b1e4f140fb8311e5ed88f326..e71dc1aa46020d7bdec82c08ecc676596f7973b5 100755 (executable)
@@ -105,7 +105,8 @@ get_machine_excludes()
 {
        local machine="$1"
        local excludes=$(cat config.yaml \
-               | yq --raw-output ".machines.\"$machine\".excludes[]")
+               | yq --raw-output ".machines.\"$machine\".excludes[]" \
+               2> /dev/null)
 
        [ "$excludes" == "null" ] && return
        [ -z "$excludes" ] && return