This commit is contained in:
Fioren
2024-09-18 13:03:56 +07:00
parent 4bc3773026
commit e71e9fc277
3 changed files with 3 additions and 1 deletions

View File

@@ -138,7 +138,7 @@ get_apk() {
*) url_regexp='$5'"[^@]*$7"''"[^@]*$6"'</div>[^@]*@\([^"]*\)' ;;
esac
fi
if [ -z "$version" ]; then
if [ -z "$version" ] && [ "$version" != "latest" ]; then
version=$(jq -r '[.. | objects | select(.name == "'$1'" and .versions != null) | .versions[]] | reverse | .[0] // ""' *.json | uniq)
fi
export version="$version"