Skip to content

Commit 54234c8

Browse files
committed
Use line-buffered tee to flush log output immediately
1 parent 44a8f16 commit 54234c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -euo pipefail
77
# Redirect all output to the log file (and console via tee)
88
LOG_FILE="/tmp/chatserver-update.log"
99
rm -f "$LOG_FILE"
10-
exec > >(tee "$LOG_FILE") 2>&1
10+
exec > >(stdbuf -oL tee "$LOG_FILE") 2>&1
1111

1212
# Configuration
1313
APP_NAME="chatserver"

0 commit comments

Comments
 (0)