Update lib/lib.sh
This commit is contained in:
parent
cd95e73756
commit
dd0002c7c6
1 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,8 @@ function download_gitea() {
|
|||
if ! test -f $DIR_BINARIES/gitea-$version; then
|
||||
mkdir -p $DIR_BINARIES
|
||||
if [[ $version =~ ^[0-9]+\.[0-9]+$ ]]; then
|
||||
full_version=$(curl -sS "https://dl.gitea.com/gitea/version.json" | jq -r '.latest.version')
|
||||
full_version=$(curl -sS "https://api.github.com/repos/go-gitea/gitea/releases?per_page=100" | jq -r '.[] | .tag_name | select(startswith("v'$version'"))' | grep -v -e '-rc' | sort --reverse --version-sort | head -1)
|
||||
full_version=${full_version#v}
|
||||
else
|
||||
full_version=$version
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue