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 {