From d0666b1bfd3c1d1bdd9f9ade6618b92fc1bdfd95 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 26 May 2024 12:25:53 +0200 Subject: [PATCH] v7.0.3 is greater than v7.0-test --- scripts/cli-docs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cli-docs.sh b/scripts/cli-docs.sh index e6f0fccd..37dc3051 100755 --- a/scripts/cli-docs.sh +++ b/scripts/cli-docs.sh @@ -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 }