mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes Icinga shell header being printed when it shouldn't
Impelements #87
This commit is contained in:
parent
9f69bedb52
commit
40ab5191de
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ function Invoke-IcingaCommand()
|
||||||
|
|
||||||
# Print a header informing our user that loaded the Icinga Framework with a specific
|
# Print a header informing our user that loaded the Icinga Framework with a specific
|
||||||
# version. We can also skip the header by using $SKipHeader
|
# version. We can also skip the header by using $SKipHeader
|
||||||
if ($SkipHeader -eq $FALSE) {
|
if ([string]::IsNullOrEmpty($ScriptBlock) -And $SkipHeader -eq $FALSE) {
|
||||||
Write-Host '******************************************************';
|
Write-Host '******************************************************';
|
||||||
Write-Host ([string]::Format('** Icinga PowerShell Framework {0}', $IcingaFrameworkData.PrivateData.Version));
|
Write-Host ([string]::Format('** Icinga PowerShell Framework {0}', $IcingaFrameworkData.PrivateData.Version));
|
||||||
Write-Host ([string]::Format('** Copyright {0}', $IcingaFrameworkData.Copyright));
|
Write-Host ([string]::Format('** Copyright {0}', $IcingaFrameworkData.Copyright));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue