From: Bastian Dehn Date: Sat, 27 Jun 2026 17:52:20 +0000 (+0200) Subject: fix find parameter X-Git-Tag: v1.0.5^2~1^2~8 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=7c63e8ff0bed22ca5118a7e3effa7ad5ccfbd655;p=simple-backup.git fix find parameter --- diff --git a/src/backup b/src/backup index e9f5828..3066bbf 100755 --- a/src/backup +++ b/src/backup @@ -41,7 +41,7 @@ rotate_history() [ -f "$history_file" ] || return 0 - history_lines=$(wc -l "$history_file") + history_lines=$(wc --lines "$history_file") echo "ℹ️ INFO: $history_file has $history_lines lines" [ "$history_lines" -ge 100 ] \ && savelog -c 10 -l "$history_file" \ @@ -225,7 +225,7 @@ cleanup_backups() local backup_count=$3 local backup_counted= - backup_counted=$(find "$backup_path" -max-depth 1 -type d \ + backup_counted=$(find "$backup_path" -maxdepth 1 -type d \ | grep "_$backup_name" \ | sort \ | wc --lines)