diff --git a/Scripts/switch-branch.ps1 b/Scripts/switch-branch.ps1 index 20b1c992..0a7fb54e 100755 --- a/Scripts/switch-branch.ps1 +++ b/Scripts/switch-branch.ps1 @@ -40,7 +40,7 @@ try { & git -C "$RepoDir" fetch --all --prune --prune-tags --force if ($lastExitCode -ne "0") { throw "'git fetch' failed with exit code $lastExitCode" } - "⏳ (4/6) Switching to branch '$BranchName'..." + "⏳ (4/6) Switching to '$BranchName' branch..." & git -C "$RepoDir" checkout --recurse-submodules "$BranchName" if ($lastExitCode -ne "0") { throw "'git checkout $BranchName' failed with exit code $lastExitCode" } @@ -53,7 +53,7 @@ try { if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ switched 📂$RepoDirName repository to $BranchName branch in $Elapsed sec." + "✔️ switched Git repository 📂$RepoDirName to $BranchName branch in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"