Skip to content

Commit

Permalink
logging: use >&0 to bring back original stdout
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Iwanicki <[email protected]>
  • Loading branch information
m-iwanicki committed Dec 19, 2024
1 parent 13b8a47 commit f6159f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/logging
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ start_logging() {

stop_logging() {
if [ -n "$LOGGING" ]; then
exec &>"$(tty)"
exec >&0
LOGGING=
fi
}
Expand Down

0 comments on commit f6159f6

Please sign in to comment.