Merge pull request #72 from n35k3nd1r/master

fix Problem with existing 'InstallDir' while running Install-IcingaAgent
This commit is contained in:
Lord Hepipud 2020-06-18 10:22:48 +02:00 committed by GitHub
commit 7542cd92c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;