mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 18:03:35 +01:00
Improve output of fetch-repos.ps1
This commit is contained in:
parent
67845aaf95
commit
f37ada4a70
@ -18,10 +18,12 @@ try {
|
||||
|
||||
[int]$Count = 0
|
||||
get-childItem $ParentDir -attributes Directory | foreach-object {
|
||||
"⏳ Fetching updates for Git repository 📂$($_.Name) ..."
|
||||
|
||||
set-location "$($_.FullName)"
|
||||
|
||||
& "$PSScriptRoot/fetch-repo.ps1"
|
||||
if ($lastExitCode -ne "0") { throw "Script 'fetch-repo.ps1' failed" }
|
||||
& git fetch --all --recurse-submodules --jobs=4
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||
|
||||
set-location ..
|
||||
$Count++
|
||||
|
Loading…
Reference in New Issue
Block a user