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 <noreply@anthropic.com>main v1.1.277
parent
240c672198
commit
5ec7084cbd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue