From 6ebd31863810411ff8457e81e39e47ccbec43ef2 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 27 Jun 2026 19:57:38 +0200 Subject: [PATCH] fix count lines --- src/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backup b/src/backup index 3066bbf..b435709 100755 --- a/src/backup +++ b/src/backup @@ -41,7 +41,7 @@ rotate_history() [ -f "$history_file" ] || return 0 - history_lines=$(wc --lines "$history_file") + history_lines=$(wc --lines "$history_file" | awk '{print $1}') echo "ℹ️ INFO: $history_file has $history_lines lines" [ "$history_lines" -ge 100 ] \ && savelog -c 10 -l "$history_file" \ -- 2.47.3