Skip to content

Commit

Permalink
install script: don't show progress indicator in CI envs
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jun 29, 2022
1 parent 265367f commit 463b6b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 `, {
Expand Down

0 comments on commit 463b6b8

Please sign in to comment.