Skip to content

Commit

Permalink
Merge pull request #5 from theohbrothers/fix/fix-generate-downloadbin…
Browse files Browse the repository at this point in the history
…ary-function-using-wrong-version

Fix: Fix `Generate-DownloadBinary` function using wrong version
  • Loading branch information
leojonathanoh authored Nov 7, 2023
2 parents 78c1653 + 6a521bb commit 769f0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate/templates/Dockerfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Generate-DownloadBinary ($o) {
if ($o['checksumsUrl']) {
Set-Checksums "$( $o['binary'] )-$( $o['version'] )" $o['checksumsUrl']
}else {
$release = Invoke-RestMethod "https://api.github.com/repos/$( $o['repository'] )/releases/tags/v1.0.3"
$release = Invoke-RestMethod "https://api.github.com/repos/$( $o['repository'] )/releases/tags/$( $o['version'] )"
$releaseAssetsFiles = $release.assets | ? { $_.name -match [regex]::Escape($o['binary']) -and $_.name -notmatch '\.sha\d+$' }
$files = [ordered]@{}
foreach ($f in $releaseAssetsFiles ) {
Expand Down

0 comments on commit 769f0cc

Please sign in to comment.