Update new-branch.ps1

This commit is contained in:
Markus Fleschutz 2023-11-07 16:22:03 +01:00
parent 9d44a2e9a0
commit 54cc55b103

View File

@ -15,7 +15,7 @@
(4/6) Creating new branch... (4/6) Creating new branch...
(5/6) Pushing updates... (5/6) Pushing updates...
(6/6) Updating submodules... (6/6) Updating submodules...
Created branch 'test123' in repo 📂MyRepo (based on 'main' in 18 sec) Created branch 'test123' in repo 📂MyRepo (based on 'main') in 18 sec
.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
"✔️ Created branch '$newBranch' in repo 📂$repoPathName (based on '$currentBranch' in $elapsed sec)" "✔️ Created branch '$newBranch' in repo 📂$repoPathName (based on '$currentBranch') 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])"