mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-29 10:09:37 +01:00
Update edit.ps1
This commit is contained in:
parent
a79bb3d0eb
commit
4b4ef9c1c4
@ -17,7 +17,7 @@ param([string]$path = "")
|
||||
|
||||
function TryEditor { param([string]$editor, [string]$path)
|
||||
try {
|
||||
Write-Host -noNewline "$editor... "
|
||||
Write-Host -noNewline "$editor, "
|
||||
& $editor "$path"
|
||||
if ($lastExitCode -ne "0") {
|
||||
"⚠️ Can't execute '$editor' - make sure it's installed and available"
|
||||
|
Loading…
Reference in New Issue
Block a user