1 parent c9d47e1 commit a9a9005Copy full SHA for a9a9005
1 file changed
src/run-with-summary
@@ -77,7 +77,7 @@ format_output() {
77
}
78
79
# Get the command from arguments
80
-command="$@"
+command="$*"
81
82
# Secondary help guard: if exactly one argument and it is -h/--help, show usage and exit 0
83
if [ "$command" = "-h" ] || [ "$command" = "--help" ]; then
@@ -98,9 +98,8 @@ start_time=$(date '+%s')
98
temp_output_file=$(mktemp)
99
100
# Execute command and capture output while displaying it in realtime
101
-# Using stdbuf to force line buffering for non-interactive sessions
102
set -o pipefail
103
-stdbuf -oL -eL eval "$command" 2>&1 | tee "$temp_output_file"
+eval "$command" 2>&1 | tee "$temp_output_file"
104
exit_code=${PIPESTATUS[0]}
105
106
# Read the output from temporary file
0 commit comments