Skip to content

Commit

Permalink
fixed #341
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Apr 12, 2022
1 parent 290790d commit 250b38a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion putils/run-with-spinner.go
Expand Up @@ -10,7 +10,10 @@ func RunWithSpinner(spinner *pterm.SpinnerPrinter, f func(spinner *pterm.Spinner
}

err = f(s)
s.Stop()

if s.IsActive {
s.Stop()
}

return err
}
Expand Down

0 comments on commit 250b38a

Please sign in to comment.