mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-04 13:53:53 +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++
|
$step++
|
||||||
}
|
}
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[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
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
PS> ./pull-repos C:\MyRepos
|
PS> ./pull-repos C:\MyRepos
|
||||||
⏳ (1) Searching for Git executable... git version 2.43.0
|
⏳ (1) Searching for Git executable... git version 2.43.0
|
||||||
⏳ (2) Checking parent folder... 33 subfolders
|
⏳ (2) Checking parent folder... 33 subfolders
|
||||||
⏳ (3/35) Pulling into 📂base256unicode...
|
⏳ (3/35) Pulling into 📂base256U...
|
||||||
...
|
...
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
@ -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 at 📂$parentDir in $($elapsed)s."
|
"✅ Pulled into $numFolders repos at 📂$parentDir in $($elapsed)s."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} else {
|
} 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
|
exit 1
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user