1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-08 16:36:50 +02:00

Updated switch-branch.ps1

This commit is contained in:
Markus Fleschutz
2024-05-02 09:03:13 +02:00
parent a19489235a
commit ef346ea8bc

@ -15,7 +15,7 @@
⏳ (4/6) Switching to branch 'main'...
⏳ (5/6) Pulling remote updates...
⏳ (6/6) Updating submodules...
✔️ Switched 📂rust repository to 'main' branch in 22 sec.
✔️ Switched repo 📂rust to 'main' branch in 22s.
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -57,7 +57,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Switched 📂$repoDirName repository to '$branchName' branch in $elapsed sec."
"✔️ Switched repo 📂$repoDirName to '$branchName' branch in $($elapsed)s."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"