mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-29 11:24:27 +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)
|
function TryEditor { param([string]$editor, [string]$path)
|
||||||
try {
|
try {
|
||||||
Write-Host -noNewline "$editor... "
|
Write-Host -noNewline "$editor, "
|
||||||
& $editor "$path"
|
& $editor "$path"
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
"⚠️ Can't execute '$editor' - make sure it's installed and available"
|
"⚠️ Can't execute '$editor' - make sure it's installed and available"
|
||||||
|
Loading…
Reference in New Issue
Block a user