mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes another issue with MSI package fetching for 'release' argument
Fixes #78
This commit is contained in:
parent
4dacb116bf
commit
f26acf1e7a
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ function Get-IcingaAgentMSIPackage()
|
|||
$UsePackage = $null;
|
||||
|
||||
foreach ($line in $Content) {
|
||||
if ($line -like '*.msi*' -And $line -like "*$Architecture.msi") {
|
||||
if ($line -like '*.msi*' -And $line -like "*$Architecture.msi*") {
|
||||
$MSIPackage = $line.SubString(
|
||||
$line.IndexOf('Icinga2-'),
|
||||
$line.IndexOf('.msi') - $line.IndexOf('Icinga2-')
|
||||
|
|
|
|||
Loading…
Reference in a new issue