Return only latest version when checking releases
This commit is contained in:
parent
d8b33b61aa
commit
601b62139a
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ set -o pipefail
|
|||
|
||||
MAJOR=$(echo $1 | sed -e "s/^v//" -e "s/\.[^.]*$//")
|
||||
CURRENT=$(scripts/version.sh -L)
|
||||
NEW=$(curl -s https://www.kernel.org/releases.json | jq -r ".releases[]|select(.version | startswith(\"$MAJOR\")) | .version")
|
||||
NEW=$(curl -s https://www.kernel.org/releases.json | jq -r ".releases|sort_by(-.released.timestamp)|map(select(.version | startswith(\"$MAJOR\")))|first|.version")
|
||||
|
||||
if [[ "$(scripts/version.sh -p)" = "0" ]]; then
|
||||
[[ "$(scripts/version.sh -n)" = "$NEW" ]] || echo $NEW
|
||||
|
|
Loading…
Reference in a new issue