From c393ccb7ca1b9407f57efaa4bef85374568c808f Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 26 Oct 2018 11:29:15 +0200 Subject: [PATCH] fix progress bar termination typo --- packer/progressbar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/progressbar.go b/packer/progressbar.go index e7405b074..d8c2fcb5b 100644 --- a/packer/progressbar.go +++ b/packer/progressbar.go @@ -93,7 +93,7 @@ func (spb *StackableProgressBar) Finish() { spb.mtx.Lock() defer spb.mtx.Unlock() - if spb.items < 0 { + if spb.items > 0 { spb.items-- } if spb.items == 0 && spb.Bar.ProgressBar != nil {