mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixed issue on opening new check commands with default Editor
This commit is contained in:
parent
f5d6f152ce
commit
0e92b47ffa
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ function New-IcingaCheckCommand()
|
|||
|
||||
# Try to open the default Editor for the new Cmdlet
|
||||
$DefaultEditor = (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.psm1\OpenWithList' -Name a).a;
|
||||
#$DefaultEditor = $DefaultEditor.Replace('.exe', '');
|
||||
$DefaultEditor = $DefaultEditor.Replace('.exe', '');
|
||||
|
||||
Write-Host ([string]::IsNullOrEmpty($DefaultEditor));
|
||||
Write-Host ((Get-Command $DefaultEditor -ErrorAction SilentlyContinue));
|
||||
|
|
|
|||
Loading…
Reference in a new issue