]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
change restor with long parameter
authorBastian Dehn <hhaalo@arcor.de>
Sun, 25 May 2025 05:38:27 +0000 (07:38 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 25 May 2025 05:38:27 +0000 (07:38 +0200)
restore

diff --git a/restore b/restore
index b5a6503dad19b0232dcb6e4e34ef88c037525539..662865dfaec358a9fb04baba3e66e64615e5420c 100755 (executable)
--- a/restore
+++ b/restore
@@ -36,8 +36,10 @@ restore()
        local number="$2"
        local machine="$3"
        local path="$4"
-       local backup_root=$(cat config.yaml | yq -r '.backup_path')
-       local backup_name=$(cat config.yaml | yq -r '.backup_name')
+       local backup_root=$(cat config.yaml \
+               | yq --raw-output '.backup_path')
+       local backup_name=$(cat config.yaml \
+               | yq --raw-output '.backup_name')
 
        [ -d "$backup_root" ] \
                || errlog "could not find directory $backup_root" \