1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-04-22 18:08:18 +02:00

Updated pull-repos.ps1

This commit is contained in:
Markus Fleschutz 2024-10-10 14:50:17 +02:00
parent 2a009f311f
commit 59569a41c1

View File

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