Skip to content

Commit

Permalink
Fix progress bar showing on a TTY (#84)
Browse files Browse the repository at this point in the history
Resolves #81
  • Loading branch information
silkeh authored Mar 4, 2024
1 parent 416e850 commit 1cabb85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := 1.6.0
VERSION := 1.6.1
BINNAME := solbuild

.PHONY: build
Expand Down
2 changes: 2 additions & 0 deletions builder/source/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ func onTTY() bool {
func (s *SimpleSource) showProgress(resp *grab.Response) {
if !onTTY() {
slog.Info("Downloading source", "uri", s.URI)

return
}

pbar := pb.Start64(resp.Size())
Expand Down

0 comments on commit 1cabb85

Please sign in to comment.