Update fetch-repos.ps1

This commit is contained in:
Markus Fleschutz 2023-09-17 19:58:29 +02:00
parent f864fa1d3a
commit b8beb3ef27

View File

@ -43,7 +43,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git fetch' in $Folder failed with exit code $lastExitCode" } if ($lastExitCode -ne "0") { throw "'git fetch' in $Folder failed with exit code $lastExitCode" }
} }
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ Fetching updates into $NumFolders repositories under 📂$ParentDirName took $Elapsed sec" "✔️ Fetched updates into 📂$ParentDirName ($NumFolders repos) in $Elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"