fix: Datenlücken in Charts korrekt darstellen, Version 1.5.1

- withGaps()-Hilfsfunktion: fügt null-Punkte bei Datenlücken ein
- Betrifft: Temperatur, Luftdruck, Feuchte, Wind, Böen
- restore-db.sh: mapfile durch while-read ersetzt (zsh-kompatibel)
This commit is contained in:
2026-05-03 13:42:30 +02:00
parent cc663487e0
commit 634a6d31a4
3 changed files with 38 additions and 17 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ else
exit 1
fi
mapfile -t DUMPS < <(find "$BACKUP_DIR" -name "*.dump" | sort -r)
DUMPS=()
while IFS= read -r line; do
DUMPS+=("$line")
done < <(find "$BACKUP_DIR" -name "*.dump" | sort -r)
if [[ ${#DUMPS[@]} -eq 0 ]]; then
echo "FEHLER: Keine Backup-Dateien in $BACKUP_DIR gefunden."