From 5ec7084cbd55e5eeb7c9f453063b92cdc6bd54e3 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 08:54:09 +0200 Subject: [PATCH] Fix: mailwolt-update schreibt jetzt alle Ausgaben in Log-Datei exec > >(tee -a LOG_FILE) leitet stdout an tee weiter: - CLI: Ausgabe weiterhin im Terminal + in Log-Datei - UI (nohup >/dev/null): stdout geht nach /dev/null aber tee schreibt trotzdem in die Log-Datei Co-Authored-By: Claude Sonnet 4.6 --- scripts/update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/update.sh b/scripts/update.sh index 8293ae8..cc3ca61 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -199,6 +199,8 @@ trap '_cleanup' EXIT INT TERM echo "running" > "$STATE_DIR/state" rm -f "$STATE_DIR/rc" : > "$LOG_FILE" +# Alle echo-Ausgaben in Log-Datei schreiben (und stdout — für CLI-Nutzung) +exec > >(tee -a "$LOG_FILE") 2>&1 git_safe git_dirty_check