Skip to content

Commit

Permalink
fix crucial
Browse files Browse the repository at this point in the history
  • Loading branch information
Utesgui authored May 11, 2024
1 parent 8068bb0 commit df158b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function Get-ProductVersionFromFile {
if ($DownloadFileName -like "*.zip") {
$UnzipPath = "."
Expand-Archive -Path $DownloadFileName -DestinationPath $UnzipPath
$file = Get-ChildItem -Path $UnzipPath -Filter "*.exe,*.msi" | Select-Object -First 1
$file = Get-ChildItem -Path $UnzipPath -Include "*.exe","*.msi" -Recurse | Select-Object -First 1
} else {
$file = Get-ChildItem -Path $DownloadFileName
}
Expand Down

0 comments on commit df158b3

Please sign in to comment.