mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes unhandled $null directory value on Test-IcingaAcl
This commit is contained in:
parent
86b280eb72
commit
152a088fe0
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ function Test-IcingaAcl()
|
|||
[switch]$WriteOutput
|
||||
);
|
||||
|
||||
if (-Not (Test-Path $Directory)) {
|
||||
if ([string]::IsNullOrEmpty($Directory) -Or -Not (Test-Path $Directory)) {
|
||||
throw 'The specified directory was not found';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue