mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
win_package: remove case sensitive check for msi extension (#34476)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user