Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: reuse columns value from process.stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Mar 24, 2020
1 parent b18f6e1 commit e8646d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ipfs/src/cli/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ print.error = (msg, newline) => {

// used by ipfs.add to interrupt the progress bar
print.isTTY = process.stdout.isTTY
print.columns = process.stdout.columns

const createProgressBar = (totalBytes, output) => {
const total = byteman(totalBytes, 2, 'MB')
Expand Down

0 comments on commit e8646d8

Please sign in to comment.