Improve both scripts

This commit is contained in:
Markus Fleschutz
2021-04-14 19:23:34 +02:00
parent a2a0c914fe
commit 6e5d0d05cb
2 changed files with 15 additions and 5 deletions

View File

@ -17,8 +17,8 @@ try {
[int]$Count = 0
get-childItem $ParentDir -attributes Directory | foreach-object {
& "$PSScriptRoot/build-repo.ps1" "$ParentDir/$($_.FullName)"
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
& "$PSScriptRoot/build-repo.ps1" "$($_.FullName)"
if ($lastExitCode -ne "0") { throw "Script 'build-repo.ps1' failed" }
$Count++
}