File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -161,11 +161,9 @@ function Fetch-DownloadUrl {
161161 :loop foreach ($i in $info ) {
162162 # Skip pre-release versions unless explicitly included
163163 # Pre-releases include RC (Release Candidate), beta, alpha, and other test versions
164- if (-not $includePrerelease ) {
165- if (Test-IsPrerelease $i ) {
166- Write-Verbose " Skipping pre-release version: $ ( $i.tag_name ) "
167- continue
168- }
164+ if (-not $includePrerelease -and (Test-IsPrerelease $i )) {
165+ Write-Verbose " Skipping pre-release version: $ ( $i.tag_name ) "
166+ continue
169167 }
170168
171169 if (-not ($i.assets -is [array ])) {
@@ -210,10 +208,8 @@ function Fetch-DownloadUrl {
210208 $selectedRelease = $null
211209 foreach ($release in $info ) {
212210 # Apply the same filtering logic
213- if (-not $includePrerelease ) {
214- if (Test-IsPrerelease $release ) {
215- continue
216- }
211+ if (-not $includePrerelease -and (Test-IsPrerelease $release )) {
212+ continue
217213 }
218214 # Use the first release that passes the filter
219215 $selectedRelease = $release
You can’t perform that action at this time.
0 commit comments