mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
win_package: remove case sensitive check for msi extension (#34476)
This commit is contained in:
parent
85ff38d2e2
commit
da69f5aeae
2 changed files with 4 additions and 4 deletions
|
@ -173,7 +173,7 @@ Function Get-ProgramMetadata($state, $path, $product_id, $credential, $creates_p
|
|||
|
||||
# set the location type and validate the path
|
||||
if ($path -ne $null) {
|
||||
if ($path.EndsWith(".msi")) {
|
||||
if ($path.EndsWith(".msi", [System.StringComparison]::CurrentCultureIgnoreCase)) {
|
||||
$metadata.msi = $true
|
||||
} else {
|
||||
$metadata.msi = $false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue