fix(docker-setup): flush tee output before exit

The exec > >(tee ...) process substitution has a race condition where
the main shell exits before tee finishes printing. The print_summary
output was written to the log file but never displayed on terminal.
Added sleep 0.5 to let tee flush.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 15:11:11 +01:00
parent 80b756f0e4
commit 168a921f68
+3
View File
@@ -1933,6 +1933,9 @@ main() {
install_tools_and_configure install_tools_and_configure
print_summary print_summary
# Allow tee (from exec > >(tee ...)) to flush remaining output to terminal
sleep 0.5
} }
main "$@" main "$@"