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:
@@ -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 "$@"
|
||||||
Reference in New Issue
Block a user