From: Bastian Dehn Date: Sat, 27 Jun 2026 17:57:38 +0000 (+0200) Subject: fix count lines X-Git-Tag: v1.0.5^2~1^2~7 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=6ebd31863810411ff8457e81e39e47ccbec43ef2;p=simple-backup.git fix count lines --- 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" \