Skip to content

Commit 8f91e9f

Browse files
theihoranakryiko
authored andcommitted
scripts: use latest stable release by default
In download-latest-linux-release.sh pick latest stable (instead of mainline) Linux source version. Signed-off-by: Ihor Solodrai <[email protected]>
1 parent b84eae9 commit 8f91e9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/download-latest-linux-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ set -eux
44

55
sudo apt install -y curl jq tar xz-utils
66

7+
# pick the first stable release, it's usually the newest
78
url=$(curl -s https://www.kernel.org/releases.json \
8-
| jq -r '.releases[] | select(.moniker == "mainline") | .source')
9+
| jq -r '[.releases[] | select(.moniker == "stable")][0].source')
910

1011
curl -LO "$url"
1112
tar -xf $(basename "$url")

0 commit comments

Comments
 (0)