fix(auto-update): compare versions with epoch added

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
This commit is contained in:
Aditya Alok 2022-04-05 11:38:21 +05:30
parent d67a38d324
commit 2157e972d9
No known key found for this signature in database
GPG Key ID: 5A52117417798AC7
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ termux_pkg_upgrade_version() {
if [[ "${SKIP_VERSION_CHECK}" != "--skip-version-check" ]]; then
if ! termux_pkg_is_update_needed \
"${TERMUX_PKG_VERSION}" "${LATEST_VERSION}"; then
"${TERMUX_PKG_VERSION}" "${EPOCH}${LATEST_VERSION}"; then
echo "INFO: No update needed. Already at version '${LATEST_VERSION}'."
return 0
fi