]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
change get only last backup dir
authorBastian Dehn <hhaalo@arcor.de>
Sat, 8 Aug 2026 09:40:25 +0000 (11:40 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 8 Aug 2026 09:40:25 +0000 (11:40 +0200)
src/backup

index 696cd53d6524dac66588b04b361a3c42a93a1b05..bc9aa3bdc1f4fccda542c6a118e3d4dde46e96ae 100755 (executable)
@@ -84,6 +84,7 @@ get_last_backup_dir_path()
        backup_name=$(echo "$config" | jq --raw-output '.backup_name')
 
        find "$backup_path" \
+               -mindepth 1 \
                -maxdepth 1 \
                -type d \
                -name "*_""$backup_name" 2> /dev/null \