mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-28 01:28:50 +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'...
|
||||
⏳ (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])"
|
||||
|
Loading…
Reference in New Issue
Block a user