Log progress when interactive=false (#382)

* Log progress when interactive=false

* safe print statement
This commit is contained in:
emosbaugh
2021-07-08 13:57:35 -07:00
committed by GitHub
parent 0d56371242
commit d7b6aa2758

View File

@@ -135,10 +135,11 @@ func runPreflights(v *viper.Viper, arg string) error {
go func() {
for {
select {
case _, ok := <-progressCh:
case msg, ok := <-progressCh:
if !ok {
return
}
fmt.Fprintf(os.Stderr, "%v\n", msg)
case <-finishedCh:
return
}