From 39a8abd9ab5278285819994fd6ae78e41c34d40d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 25 May 2021 07:10:45 +0200 Subject: [PATCH] fix(install): prevent new-lines on CI/without TTY (#6703) --- src/install/browserFetcher.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/install/browserFetcher.ts b/src/install/browserFetcher.ts index 04d7df50b4..eadc8e53b2 100644 --- a/src/install/browserFetcher.ts +++ b/src/install/browserFetcher.ts @@ -54,6 +54,8 @@ export async function downloadBrowserWithProgressBar(registry: Registry, browser let lastDownloadedBytes = 0; function progress(downloadedBytes: number, totalBytes: number) { + if (!process.stderr.isTTY) + return; if (!progressBar) { progressBar = new ProgressBar(`Downloading ${progressBarName} - ${toMegabytes(totalBytes)} [:bar] :percent :etas `, { complete: '=',