mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-28 17:48:59 +01:00
Update switch-branch.ps1
This commit is contained in:
parent
49b70b104d
commit
3d64a05c57
@ -15,7 +15,7 @@
|
|||||||
⏳ (4/6) Switching to branch 'main'...
|
⏳ (4/6) Switching to branch 'main'...
|
||||||
⏳ (5/6) Pulling remote updates...
|
⏳ (5/6) Pulling remote updates...
|
||||||
⏳ (6/6) Updating submodules...
|
⏳ (6/6) Updating submodules...
|
||||||
✔️ Switched repo 📂rust to 'main' branch in 22s.
|
✔️ Switched 📂rust repo to 'main' branch in 22s.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -57,7 +57,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
|
||||||
"✔️ Switched repo 📂$repoDirName to '$branchName' branch in $($elapsed)s."
|
"✔️ Switched 📂$repoDirName repo to '$branchName' branch 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…
Reference in New Issue
Block a user