termux version as float
This commit is contained in:
parent
5a6b1856bb
commit
f3822ed42f
1 changed files with 1 additions and 1 deletions
2
ubot.py
2
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('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('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')
|
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')
|
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):
|
if os.access('/sdcard', os.W_OK):
|
||||||
logger.success('permission to write on internal storage allowed')
|
logger.success('permission to write on internal storage allowed')
|
||||||
|
|
Loading…
Reference in a new issue