mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Disable the progress bar if $TERM == dumb or unset
Fixes #3363.
(cherry picked from commit d8fd31f50f
)
This commit is contained in:
parent
db3d3a5618
commit
2f0122b23c
1 changed files with 3 additions and 1 deletions
|
@ -439,7 +439,9 @@ public:
|
|||
|
||||
void startProgressBar(bool printBuildLogs)
|
||||
{
|
||||
logger = new ProgressBar(printBuildLogs, isatty(STDERR_FILENO));
|
||||
logger = new ProgressBar(
|
||||
printBuildLogs,
|
||||
isatty(STDERR_FILENO) && getEnv("TERM").value_or("dumb") != "dumb");
|
||||
}
|
||||
|
||||
void stopProgressBar()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue