Skip to content

Commit 1cabb85

Browse files
authored
Fix progress bar showing on a TTY (#84)
Resolves #81
1 parent 416e850 commit 1cabb85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION := 1.6.0
1+
VERSION := 1.6.1
22
BINNAME := solbuild
33

44
.PHONY: build

builder/source/simple.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ func onTTY() bool {
213213
func (s *SimpleSource) showProgress(resp *grab.Response) {
214214
if !onTTY() {
215215
slog.Info("Downloading source", "uri", s.URI)
216+
217+
return
216218
}
217219

218220
pbar := pb.Start64(resp.Size())

0 commit comments

Comments
 (0)