1.21.4 is still experimental
Some checks failed
Some checks failed
This commit is contained in:
parent
61b0377fdf
commit
96ba49f5e6
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ set -euxo pipefail
|
|||
Version=$1
|
||||
BuildJSON=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4.212 Safari/537.36" https://api.papermc.io/v2/projects/paper/versions/$Version/builds)
|
||||
|
||||
if [[ "${1:-}" == "1.21" ]] ; then
|
||||
if [[ "${1:-}" == "1.21.4" ]] ; then
|
||||
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default" or .channel == "experimental")][-1].build')
|
||||
else
|
||||
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default")][-1].build')
|
||||
|
|
Loading…
Add table
Reference in a new issue