From f3822ed42f3ca79fc484c579dacf007b2c85c360 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Dec 2024 09:59:54 +0300 Subject: [PATCH] termux version as float --- ubot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot.py b/ubot.py index 0407121..b778b20 100644 --- a/ubot.py +++ b/ubot.py @@ -32,7 +32,7 @@ if is_termux: logger.warning('You use not f-droid/github apk release, it may have problems...') logger.warning('F-droid termux release here: https://f-droid.org/en/packages/com.termux/') logger.warning('Github termux release here: https://github.com/termux/termux-app/releases') - if int(os.environ.get('TERMUX_VERSION').split('.')[1]) < 118: + if float(os.environ.get('TERMUX_VERSION')[:5]) < 0.118: logger.warning('You use old version of termux, highly recommended that you update to v0.118.0 or higher ASAP for various bug fixes, including a critical world-readable vulnerability') if os.access('/sdcard', os.W_OK): logger.success('permission to write on internal storage allowed')