1
2
3
4
5
6
7
8
9
10
11
12
13
14 | === modified file 'progress/progress.go' --- progress/progress.go 2015-06-03 11:48:37 +0000 +++ progress/progress.go 2015-10-26 17:47:27 +0000 @@ -198,6 +198,10 @@ // attachedToTerminal returns true if the calling process is attached to // a terminal device. var attachedToTerminal = func() bool { + if os.Getenv("SNAPPY_HAS_TERMINAL") != "" { + return true + } + fd := int(os.Stdin.Fd()) return isatty(fd) |