mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 14:07:20 +02:00
Add unicode characters
This commit is contained in:
@ -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])"
|
||||
|
Reference in New Issue
Block a user