Update switch-branch.ps1

This commit is contained in:
Markus Fleschutz 2024-05-08 07:38:50 +02:00
parent 49b70b104d
commit 3d64a05c57

View File

@ -15,7 +15,7 @@
(4/6) Switching to branch 'main'...
(5/6) Pulling remote updates...
(6/6) Updating submodules...
Switched repo 📂rust to 'main' branch in 22s.
Switched 📂rust repo 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 repo 📂$repoDirName to '$branchName' branch in $($elapsed)s."
"✔️ Switched 📂$repoDirName repo to '$branchName' branch in $($elapsed)s."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"