From 4870c9852dad3989bfece71f501f8b353d88abfd Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 Dec 2024 23:43:52 +0300 Subject: [PATCH] && and || not working here --- src/updatenotif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/updatenotif.py b/src/updatenotif.py index 5b85642..5002e88 100644 --- a/src/updatenotif.py +++ b/src/updatenotif.py @@ -21,7 +21,7 @@ async def git_notifications_update(): else: commits = shlex.quote(commits) 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: os.system( "termux-toast '[ub4tg]: failed fetching update, maybe connection error, check console log for more info'")