Fix bash conditional expression syntax error in date range loop

Split compound conditional into separate [[ ]] tests to resolve
syntax error on line 184 when using date range filtering.

🤖 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:46:19 +02:00
co-authored by Claude
parent 2a4d029c22
commit e275523eb0
+1 -1
View File
@@ -181,7 +181,7 @@ determine_logfiles() {
local current_date="$start_date" local current_date="$start_date"
# Hinweis: In [[ ]] gibt es kein '<=' String-Operator. # Hinweis: In [[ ]] gibt es kein '<=' String-Operator.
# Daher explizit 'kleiner als ODER gleich' prüfen. # Daher explizit 'kleiner als ODER gleich' prüfen.
while [[ "$current_date" < "$end_date" || "$current_date" == "$end_date" ]]; do while [[ "$current_date" < "$end_date" ]] || [[ "$current_date" == "$end_date" ]]; do
local year month local year month
year=$(date -d "$current_date" +%Y) year=$(date -d "$current_date" +%Y)
month=$(date -d "$current_date" +%m) month=$(date -d "$current_date" +%m)