[ -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" \
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)