From 463b6b8b2ee7e7cf81ed068d8ba6f3a54d6a6850 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 29 Jun 2022 10:57:04 +0200 Subject: [PATCH] install script: don't show progress indicator in CI envs --- install.js | 1 + 1 file changed, 1 insertion(+) diff --git a/install.js b/install.js index e9cbbe3..1c5bd5f 100644 --- a/install.js +++ b/install.js @@ -138,6 +138,7 @@ function downloadFile(url, destinationPath, progressCallback = noop) { let progressBar = null; function onProgress(deltaBytes, totalBytes) { + if (process.env.CI) return; if (totalBytes === null) return; if (!progressBar) { progressBar = new ProgressBar(`Downloading ffmpeg ${releaseName} [:bar] :percent :etas `, {