mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-28 18:42:51 -05:00
v7.0.3 is greater than v7.0-test
This commit is contained in:
parent
8371da465f
commit
d0666b1bfd
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
: ${FORGEJO:=/tmp/forgejo-binary}
|
||||
|
||||
|
@ -17,7 +17,7 @@ function latest() {
|
|||
if test "$major" = "next" ; then
|
||||
select="" # this will pick whatever is the highest numbered release
|
||||
else
|
||||
select="$major"
|
||||
select="$major-test"
|
||||
fi
|
||||
curl -sS https://codeberg.org/api/v1/repos/forgejo-experimental/forgejo/releases | jq -r '.[] | .tag_name | select(startswith("'$select'"))' | sort --reverse --version-sort | head -1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue