Skip to content

Commit d34b496

Browse files
committed
Fixes Icinga Agent MSI package fetching by ignoring RC packages
Fixes #58
1 parent 76cab25 commit d34b496

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/core/icingaagent/getters/Get-IcingaAgentMSIPackage.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ function Get-IcingaAgentMSIPackage()
2525

2626
foreach ($line in $Content) {
2727
if ($line -like '*.msi*' -And $line -like "*$Architecture*") {
28-
#Write-Host '#####' $line
2928
$MSIPackage = $line.SubString(
3029
$line.IndexOf('Icinga2-'),
3130
$line.IndexOf('.msi') - $line.IndexOf('Icinga2-')
@@ -43,7 +42,7 @@ function Get-IcingaAgentMSIPackage()
4342
break;
4443
}
4544
} elseif ($Version -eq 'latest') {
46-
if ($line -like '*snapshot*') {
45+
if ($line -like '*snapshot*' -Or $line -like '*-rc*') {
4746
continue;
4847
}
4948
$UsePackage = $MSIPackage;

0 commit comments

Comments
 (0)