From 008cc0e4aa7f92fc7ae86612197b48989b7d70ac Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sat, 2 Jan 2021 23:29:23 +0200 Subject: [PATCH] check-updates.sh: fix epoch/version splitting --- scripts/updates/check-updates.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/updates/check-updates.sh b/scripts/updates/check-updates.sh index 4eb71e78f..207da006c 100755 --- a/scripts/updates/check-updates.sh +++ b/scripts/updates/check-updates.sh @@ -28,9 +28,10 @@ if [ -f "${BASEDIR}/github-projects.txt" ]; then fi # Our local version of package. - termux_version=$(set +e +u;. "${BASEDIR}/../../packages/${package}/build.sh" 2>/dev/null; echo "$TERMUX_PKG_VERSION" | cut -d: -f2-) + termux_version=$(set +e +u;. "${BASEDIR}/../../packages/${package}/build.sh" 2>/dev/null; echo "$TERMUX_PKG_VERSION") termux_epoch="$(echo "$termux_version" | cut -d: -f1)" [ -n "$termux_epoch" ] && termux_epoch+=":" + termux_version=$(echo "$termux_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)