mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-09 18:14:36 +02:00
Updated fetch-repos.ps1 and pull-repos.ps1
This commit is contained in:
parent
40410344cc
commit
372ab71fc2
@ -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])"
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user