build-self: Spin only on TTYs.
* build-aux/build-self.scm (build-program): Spin only when 'isatty?' returns true.
This commit is contained in:
parent
fefcb122ac
commit
c108c46fb4
|
@ -334,12 +334,13 @@ interface (FFI) of Guile.")
|
||||||
(format (current-error-port)
|
(format (current-error-port)
|
||||||
"Computing Guix derivation for '~a'... "
|
"Computing Guix derivation for '~a'... "
|
||||||
system)
|
system)
|
||||||
(let loop ((spin spin))
|
(when (isatty? (current-error-port))
|
||||||
(display (string-append "\b" (car spin))
|
(let loop ((spin spin))
|
||||||
(current-error-port))
|
(display (string-append "\b" (car spin))
|
||||||
(force-output (current-error-port))
|
(current-error-port))
|
||||||
(sleep 1)
|
(force-output (current-error-port))
|
||||||
(loop (cdr spin))))
|
(sleep 1)
|
||||||
|
(loop (cdr spin)))))
|
||||||
|
|
||||||
(match (command-line)
|
(match (command-line)
|
||||||
((_ source system version protocol-version)
|
((_ source system version protocol-version)
|
||||||
|
|
Loading…
Reference in New Issue