diff --git a/vendor/github.com/cheggaaa/pb/pb_x.go b/vendor/github.com/cheggaaa/pb/pb_x.go index 493854af4..398345080 100644 --- a/vendor/github.com/cheggaaa/pb/pb_x.go +++ b/vendor/github.com/cheggaaa/pb/pb_x.go @@ -24,16 +24,16 @@ var ( ) func init() { - // echoLockMutex.Lock() - // defer echoLockMutex.Unlock() + echoLockMutex.Lock() + defer echoLockMutex.Unlock() - // var err error - // tty, err = os.Open("/dev/tty") - // istty = true - // if err != nil { - // tty = os.Stdin - // istty = false - // } + var err error + tty, err = os.Open("/dev/tty") + istty = true + if err != nil { + tty = os.Stdin + istty = false + } } // terminalWidth returns width of the terminal.