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 pull-repo.ps1 [<repo-dir>]
.DESCRIPTION pulls updates for the current/given Git repository (including submodules)
@ -9,7 +9,7 @@
param($RepoDir = "$PWD")
try {
write-output "Pulling updates for Git repository $RepoDir ..."
"Pulling updates for Git repository $RepoDir ..."
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
set-location "$RepoDir"
@ -20,7 +20,7 @@ try {
& git status
if ($lastExitCode -ne "0") { throw "'git status' failed" }
write-host -foregroundColor green "OK - pulled updates for Git repository $RepoDir"
write-host -foregroundColor green "✔️ updates pulled for Git repository $RepoDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"