From dbbb440eac55bcfa50ffd57cc6064bfc820de17d Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 25 Sep 2019 19:55:27 +0200 Subject: [PATCH] Removed debug output for New-CheckCommand Cmdlet --- lib/core/tools/New-IcingaCheckCommand.psm1 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/core/tools/New-IcingaCheckCommand.psm1 b/lib/core/tools/New-IcingaCheckCommand.psm1 index 2790c92..8fea58e 100644 --- a/lib/core/tools/New-IcingaCheckCommand.psm1 +++ b/lib/core/tools/New-IcingaCheckCommand.psm1 @@ -80,10 +80,6 @@ function New-IcingaCheckCommand() $DefaultEditor = (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.psm1\OpenWithList' -Name a).a; $DefaultEditor = $DefaultEditor.Replace('.exe', ''); - Write-Host ([string]::IsNullOrEmpty($DefaultEditor)); - Write-Host ((Get-Command $DefaultEditor -ErrorAction SilentlyContinue)); - Write-Host ((Test-Path $DefaultEditor)); - if ([string]::IsNullOrEmpty($DefaultEditor) -eq $FALSE -And ((Get-Command $DefaultEditor -ErrorAction SilentlyContinue) -eq $null) -And ((Test-Path $DefaultEditor) -eq $FALSE)) { Write-Host 'No default editor for .psm1 files found. Specify a default editor to automaticly open the newly generated check plugin.'; return;