check-updates.sh: handle epoch in package version string
This commit is contained in:
parent
3baf32fb0e
commit
044a4fa9af
@ -17,7 +17,7 @@ if [ -f "${BASEDIR}/github-projects.txt" ]; then
|
||||
fi
|
||||
|
||||
# Our local version of package.
|
||||
termux_version=$(. "${BASEDIR}/../../packages/${package}/build.sh" 2>/dev/null; echo "$TERMUX_PKG_VERSION")
|
||||
termux_version=$(. "${BASEDIR}/../../packages/${package}/build.sh" 2>/dev/null; echo "$TERMUX_PKG_VERSION" | cut -d: -f2-)
|
||||
|
||||
# Latest version is the current release tag on Github.
|
||||
latest_version=$(curl --silent -H "Authorization: token ${GITHUB_API_TOKEN}" "https://api.github.com/repos/${project}/releases/latest" | jq -r .tag_name)
|
||||
|
Loading…
Reference in New Issue
Block a user