fix: ignore bar update error
This commit is contained in:
parent
78f39bbf96
commit
c38cd082d2
1 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
clonedCount++
|
clonedCount++
|
||||||
if !debug {
|
if !debug {
|
||||||
bar.Add(1)
|
_ = bar.Add(1)
|
||||||
}
|
}
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
|
|
||||||
|
|
@ -88,7 +88,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
|
||||||
logger.Print("Decided to pull repository: "+repoName, nil)
|
logger.Print("Decided to pull repository: "+repoName, nil)
|
||||||
pullRepository(repoName, repoDestination)
|
pullRepository(repoName, repoDestination)
|
||||||
if !debug {
|
if !debug {
|
||||||
bar.Add(1)
|
_ = bar.Add(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
@ -99,7 +99,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
errorCount++
|
errorCount++
|
||||||
if !debug {
|
if !debug {
|
||||||
bar.Add(1)
|
_ = bar.Add(1)
|
||||||
}
|
}
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue