mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-12 09:40:45 +01:00
Updated fetch-repos.ps1 and pull-repos.ps1
This commit is contained in:
parent
de90e60b2e
commit
829c22d3fb
@ -44,7 +44,7 @@ try {
|
||||
$step++
|
||||
}
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✅ Fetched into $numFolders repos under 📂$parentDirPathName in $($elapsed)s."
|
||||
"✅ Fetched into $numFolders repos at 📂$parentDirPath in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -9,7 +9,7 @@
|
||||
PS> ./pull-repos C:\MyRepos
|
||||
⏳ (1) Searching for Git executable... git version 2.43.0
|
||||
⏳ (2) Checking parent folder... 33 subfolders
|
||||
⏳ (3/35) Pulling into 📂base256unicode...
|
||||
⏳ (3/35) Pulling into 📂base256U...
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -48,10 +48,10 @@ try {
|
||||
}
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
if ($failed -eq 0) {
|
||||
"✅ Updated $numFolders repos at 📂$parentDir in $($elapsed)s."
|
||||
"✅ Pulled into $numFolders repos at 📂$parentDir in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} else {
|
||||
"⚠️ Updated $numFolders repos at 📂$parentDir in $($elapsed)s but $failed failed!"
|
||||
"⚠️ Pulled into $numFolders repos at 📂$parentDir in $($elapsed)s but $failed failed!"
|
||||
exit 1
|
||||
}
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user