&& and || not working here

This commit is contained in:
Your Name 2024-12-18 23:43:52 +03:00
parent 6cffcf3f11
commit 4870c9852d

View file

@ -21,7 +21,7 @@ async def git_notifications_update():
else: else:
commits = shlex.quote(commits) commits = shlex.quote(commits)
os.system( os.system(
f"termux-notification -i ub4tgupd --title 'ub4tg: update avalaible!' --content 'For apply tap button Get update and restart bot\nChanges:\n{commits}' --button1 'Get update' --button1-action 'termux-notification-remove ub4tgupd; cd {cwd}; git pull && termux-toast 'ub4tg updated, now restart it for apply update' || termux-toast 'ub4tg update failed'") f"termux-notification -i ub4tgupd --title 'ub4tg: update avalaible!' --content 'For apply tap button Get update and restart bot\nChanges:\n{commits}' --button1 'Get update' --button1-action 'termux-notification-remove ub4tgupd; cd {cwd}; git pull; termux-toast 'ub4tg updated, now restart it for apply update'")
else: else:
os.system( os.system(
"termux-toast '[ub4tg]: failed fetching update, maybe connection error, check console log for more info'") "termux-toast '[ub4tg]: failed fetching update, maybe connection error, check console log for more info'")