Fix URL building for Agent MSI packages

Fixes #64
This commit is contained in:
Lord Hepipud 2020-04-28 16:39:38 +02:00
parent 7fa21a8f86
commit 96733eb791

View file

@ -66,7 +66,7 @@ function Get-IcingaAgentMSIPackage()
return @{ return @{
'InstallerPath' = $DownloadPath; 'InstallerPath' = $DownloadPath;
'Version' = ($UsePackage).Replace('Icinga2-v', '').Replace($Architecture, '').Replace('.msi', '').Replace('-', ''); 'Version' = ($UsePackage).Replace('Icinga2-v', '').Replace([string]::Format('-{0}.msi', $Architecture), '')
'LastUpdate' = $LastUpdate; 'LastUpdate' = $LastUpdate;
} }
} }