Update edit.ps1

This commit is contained in:
Markus Fleschutz 2024-03-20 16:14:46 +01:00
parent a79bb3d0eb
commit 4b4ef9c1c4

View File

@ -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"