Updated fetch-repos.ps1 and pull-repos.ps1

This commit is contained in:
Markus Fleschutz 2025-03-12 18:10:07 +01:00
parent 40410344cc
commit 372ab71fc2
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ try {
$step++
}
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Fetched updates into $numFolders Git repositories at 📂$parentDirPath in $($elapsed)s."
"✅ Fetched into $numFolders Git repos at 📂$parentDirPath in $($elapsed)s."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -48,10 +48,10 @@ try {
}
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
if ($numFailed -eq 0) {
"Update of $numFolders Git repos at 📂$parentDir succeeded in $($elapsed)s."
"Pulled into $numFolders Git repos at 📂$parentDir in $($elapsed)s."
exit 0 # success
} else {
"⚠️ Updated $numFolders Git repos at 📂$parentDir in $($elapsed)s but $numFailed failed!"
"⚠️ Pulled into $numFolders Git repos at 📂$parentDir but $numFailed failed (took $($elapsed)s)!"
exit 1
}
} catch {