Ubuntu Pastebin

Paste from Chipaca at Mon, 26 Oct 2015 17:48:19 +0000

Download as text
 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)
Download as text