Skip to content

Commit

Permalink
build/bin/sage-logger [GITHUB_ACTIONS]: Fix env syntax, run only in p…
Browse files Browse the repository at this point in the history
…refixed logs
  • Loading branch information
Matthias Koeppe committed Jun 30, 2023
1 parent dd3db33 commit 95705ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build/bin/sage-logger
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ else
# We trap SIGINT such that SIGINT interrupts the main process being
# run, not the logging.



( exec 2>&1; eval "$cmd" ) | \
( trap '' SIGINT; if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::group::${logname}"; fi; tee -a "$logfile" | $SED; if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::endgroup::"; fi )
( 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 )

pipestatus=(${PIPESTATUS[*]})

Expand Down

0 comments on commit 95705ba

Please sign in to comment.