From 506e9b334d3a91c16079060038774486c201ac61 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 21 Apr 2021 08:57:08 +0200 Subject: [PATCH] Improve create-branch.ps1 --- Scripts/create-branch.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/create-branch.ps1 b/Scripts/create-branch.ps1 index c7632d92..73125670 100755 --- a/Scripts/create-branch.ps1 +++ b/Scripts/create-branch.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/pwsh <# .SYNTAX create-branch.ps1 [] [] -.DESCRIPTION creates a new branch in the current/given Git repository +.DESCRIPTION creates and switches to a new branch in a Git repository .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> @@ -32,7 +32,7 @@ try { & git submodule update --init --recursive if ($lastExitCode -ne "0") { throw "'git submodule update' failed" } - "🌵 branch $NewBranchName has been created" + "✔️ created new branch 🌵$NewBranchName" exit 0 } catch { write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"