Fix string comparison operator in date range loop

Replace <= operator with explicit 'less than OR equal' logic in bash [[ ]] context.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
h0tznpl0tz
2025-09-11 17:37:06 +02:00
co-authored by Claude
parent 248b2f9c1a
commit 2a4d029c22
+3 -1
View File
@@ -179,7 +179,9 @@ determine_logfiles() {
validate_date "$end_date"
local current_date="$start_date"
while [[ "$current_date" <= "$end_date" ]]; do
# Hinweis: In [[ ]] gibt es kein '<=' String-Operator.
# Daher explizit 'kleiner als ODER gleich' prüfen.
while [[ "$current_date" < "$end_date" || "$current_date" == "$end_date" ]]; do
local year month
year=$(date -d "$current_date" +%Y)
month=$(date -d "$current_date" +%m)