Improve output of fetch-repos.ps1

This commit is contained in:
Markus Fleschutz 2021-04-22 09:31:58 +02:00
parent 67845aaf95
commit f37ada4a70

View File

@ -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++