From: Bastian Dehn Date: Sun, 25 May 2025 05:38:27 +0000 (+0200) Subject: change restor with long parameter X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=a46c7a1166f6b760ecadbb5fae139910a1c64de5;p=simple-backup.git change restor with long parameter --- diff --git a/restore b/restore index b5a6503..662865d 100755 --- 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" \