From: Bastian Dehn Date: Sat, 8 Aug 2026 09:40:25 +0000 (+0200) Subject: change get only last backup dir X-Git-Tag: v1.0.6^2~1^2~30 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=fae2e748937c3bdce9b149196ee413b98333850a;p=simple-backup.git change get only last backup dir --- diff --git a/src/backup b/src/backup index 696cd53..bc9aa3b 100755 --- a/src/backup +++ b/src/backup @@ -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 \