fix(ci): preserve stdin through Docker heartbeat logging

This commit is contained in:
Vincent Koc
2026-08-05 23:34:35 +08:00
parent 238c8bfc23
commit 113af2fcbd
2 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ run_logged_print_heartbeat() {
trap 'cleanup_heartbeat_command 130' INT
trap 'cleanup_heartbeat_command 143' TERM
trap 'cleanup_heartbeat_command 129' HUP
"$@" >"$log_file" 2>&1 &
"$@" <&0 >"$log_file" 2>&1 &
command_pid=$!
local started_at="$SECONDS"
local next_heartbeat=$interval_seconds