Add unicode characters

This commit is contained in:
Markus Fleschutz
2021-04-16 18:58:19 +02:00
parent 46f7fd7b9c
commit 357ae2cea9
4 changed files with 26 additions and 16 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/pwsh
#!/usr/bin/pwsh
<#
.SYNTAX switch-branch.ps1 [<branch-name>] [<repo-dir>]
.DESCRIPTION switches the branch in the current/given Git repository (including submodules)
@ -7,10 +7,7 @@
#>
param($BranchName = "", $RepoDir = "$PWD")
if ($BranchName -eq "") {
$BranchName = read-host "Enter name of branch to switch to"
}
if ($BranchName -eq "") { $BranchName = read-host "Enter name of branch to switch to" }
try {
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }