Skip to content

Commit

Permalink
Update Get-QGIS.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronparker committed Nov 28, 2024
1 parent 4195d04 commit 26218a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Evergreen/Apps/Get-QGIS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function Get-QGIS {

# Return an object for each channel
foreach ($Channel in $res.Get.Update.Channels) {
$Version = "$($UpdateFeed.$Channel.version)-$($UpdateFeed.$Channel.binary)"
$Version = "$($UpdateFeed.$Channel.major).$($UpdateFeed.$Channel.minor).$($UpdateFeed.$Channel.patch)-$($UpdateFeed.$Channel.binary)"
[PSCustomObject]@{
Version = $Version
Channel = $Channel
Date = $UpdateFeed.$Channel.date
Date = $(if ($UpdateFeed.$Channel.date -eq "<no value>") { $null } else { ConvertTo-DateTime -DateTime $UpdateFeed.$Channel.date -Pattern "yyyy-MM-dd" })
URI = $res.Get.Download.Uri -replace $res.Get.Download.ReplaceText, $Version
} | Write-Output
}
}
}

0 comments on commit 26218a1

Please sign in to comment.