1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-06-18 02:46:41 +02:00

Update switch-branch.ps1

This commit is contained in:
Markus Fleschutz 2023-03-28 07:51:58 +02:00
parent 10152c9668
commit 4fadebf14a

@ -53,7 +53,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 📂$RepoDirName repo to branch $BranchName in $Elapsed sec" "✔️ switched 📂$RepoDirName repo to '$BranchName' branch in $Elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"