diff --git a/lib/core/icingaagent/installer/Install-IcingaAgent.psm1 b/lib/core/icingaagent/installer/Install-IcingaAgent.psm1 index 97ccf06..bb23a83 100644 --- a/lib/core/icingaagent/installer/Install-IcingaAgent.psm1 +++ b/lib/core/icingaagent/installer/Install-IcingaAgent.psm1 @@ -46,8 +46,8 @@ function Install-IcingaAgent() if ([string]::IsNullOrEmpty($InstallDir) -eq $FALSE) { if ((Test-Path $InstallDir) -eq $FALSE) { New-Item -Path $InstallDir -Force | Out-Null; - $InstallTarget = $InstallDir; } + $InstallTarget = $InstallDir; } [string]$InstallFolderMsg = $InstallTarget;