From 96733eb7911d649e78f87461b591b81af957bd40 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Tue, 28 Apr 2020 16:39:38 +0200 Subject: [PATCH] Fix URL building for Agent MSI packages Fixes #64 --- lib/core/icingaagent/getters/Get-IcingaAgentMSIPackage.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/icingaagent/getters/Get-IcingaAgentMSIPackage.psm1 b/lib/core/icingaagent/getters/Get-IcingaAgentMSIPackage.psm1 index ed86911..132bfeb 100644 --- a/lib/core/icingaagent/getters/Get-IcingaAgentMSIPackage.psm1 +++ b/lib/core/icingaagent/getters/Get-IcingaAgentMSIPackage.psm1 @@ -66,7 +66,7 @@ function Get-IcingaAgentMSIPackage() return @{ '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; } }