diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index 661966733..28199c917 100644 --- a/src/nix/progress-bar.cc +++ b/src/nix/progress-bar.cc @@ -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()