]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix shellcheck issue
authorBastian Dehn <hhaalo@arcor.de>
Tue, 4 Aug 2026 16:22:54 +0000 (18:22 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 4 Aug 2026 16:22:54 +0000 (18:22 +0200)
src/backup

index e501d8098eb8007ee1f484beebe29230517824ce..b392565b95a154e7f6717028555557724cbc4449 100755 (executable)
@@ -70,8 +70,10 @@ exists_backup_count()
 get_last_backup_dir_path()
 {
        local config="$1"
-       local backup_path=$(echo "$config" | jq --raw-output '.backup_path')
-       local backup_name=$(echo "$config" | jq --raw-output '.backup_name')
+       local backup_path=
+       local backup_name
+       backup_path=$(echo "$config" | jq --raw-output '.backup_path')
+       backup_name=$(echo "$config" | jq --raw-output '.backup_name')
 
        find "$backup_path" \
                -maxdepth 1 \