From 7c63e8ff0bed22ca5118a7e3effa7ad5ccfbd655 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 27 Jun 2026 19:52:20 +0200 Subject: [PATCH] fix find parameter --- src/backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.3