fix(libmsgpack{,-cxx}): regexp in tag name check

%ci:no-build

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
This commit is contained in:
Aditya Alok 2022-04-05 23:50:12 +05:30
parent 47b24412a6
commit 2c11650b05
No known key found for this signature in database
GPG Key ID: 345AE134142077D8
2 changed files with 4 additions and 4 deletions

View File

@ -15,9 +15,9 @@ termux_pkg_auto_update() {
local tag
tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}")"
# check if this is not a c release:
if grep -qP "^cpp-${TERMUX_PKG_UPDATE_VERSION_REGEXP}$" <<<"$tag"; then
if grep -qP "^cpp-${TERMUX_PKG_UPDATE_VERSION_REGEXP}\$" <<<"$tag"; then
termux_pkg_upgrade_version "$tag"
else
echo "WARNING: Skipping auto-update of ${TERMUX_PKG_NAME}: Not a cpp release($tag)"
echo "WARNING: Skipping auto-update: Not a cpp release($tag)"
fi
}

View File

@ -20,9 +20,9 @@ termux_pkg_auto_update() {
local tag
tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}")"
# check if this is not a c++ release:
if grep -qP "^c-${TERMUX_PKG_UPDATE_VERSION_REGEXP}$" <<<"$tag"; then
if grep -qP "^c-${TERMUX_PKG_UPDATE_VERSION_REGEXP}\$" <<<"$tag"; then
termux_pkg_upgrade_version "$tag"
else
echo "WARNING: Skipping auto-update of ${TERMUX_PKG_NAME}: Not a C release($tag)"
echo "WARNING: Skipping auto-update: Not a C release($tag)"
fi
}