Skip to content

Commit 971b0a9

Browse files
Sort versions by their semantic version number (#14)
1 parent 32f5b5a commit 971b0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-codeql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fi
9595
function download() {
9696
local version="$1"
9797
if [ -z "$version" ] || [ "$version" = "latest" ]; then
98-
version=$(gh api "repos/$repo/releases/latest" --jq '.tag_name')
98+
version=$(gh api "repos/$repo/releases" --paginate --jq '.[].tag_name' | sort -V | tail -1)
9999
fi
100100
if [ -x "$rootdir/dist/$channel/$version/codeql" ] ; then
101101
# Already downloaded.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy