mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
Fixed issue on opening new check commands with default Editor
This commit is contained in:
parent
2248e209a2
commit
02bc344c20
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