mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-22 04:51:35 +02:00
Updated pull-repo.ps1
This commit is contained in:
parent
b7e107ecd6
commit
60cc93dbbd
@ -11,7 +11,7 @@
|
|||||||
⏳ (2/4) Checking local repository... 📂C:\Repos\rust
|
⏳ (2/4) Checking local repository... 📂C:\Repos\rust
|
||||||
⏳ (3/4) Pulling remote updates...
|
⏳ (3/4) Pulling remote updates...
|
||||||
⏳ (4/4) Updating submodules...
|
⏳ (4/4) Updating submodules...
|
||||||
✔️ Pulled remote updates into 📂rust repo in 14s.
|
✔️ Updates pulled into 📂rust repo in 14s.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -42,7 +42,7 @@ try {
|
|||||||
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ Pulled remote updates into 📂$pathToRepoName repo in $($elapsed)s."
|
"✔️ Updates pulled into 📂$pathToRepoName repo 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])"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user