Skip to content

Commit fd6b030

Browse files
author
Matthias Koeppe
committed
build/bin/sage-logger [GITHUB_ACTIONS]: Fix env syntax, run only in prefixed logs
1 parent c021b0a commit fd6b030

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build/bin/sage-logger

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ else
9090
# We trap SIGINT such that SIGINT interrupts the main process being
9191
# run, not the logging.
9292

93-
94-
9593
( exec 2>&1; eval "$cmd" ) | \
96-
( trap '' SIGINT; if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::group::${logname}"; fi; tee -a "$logfile" | $SED; if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::endgroup::"; fi )
94+
( trap '' SIGINT; if [ -n "$GITHUB_ACTIONS" -a -n "$prefix" ]; then echo "::group::${logname}"; fi; tee -a "$logfile" | $SED; if [ -n "$GITHUB_ACTIONS" -a -n "$prefix" ]; then echo "::endgroup::"; fi )
9795

9896
pipestatus=(${PIPESTATUS[*]})
9997

0 commit comments

Comments
 (0)