From 1203049e60873f7c9b61fdc0a0a4f1bc1c50a6e1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 19 Dec 2024 11:31:12 +0300 Subject: [PATCH] i forgot what tee command exists --- src/updatenotif.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/updatenotif.py b/src/updatenotif.py index 26f11ce..55c295d 100644 --- a/src/updatenotif.py +++ b/src/updatenotif.py @@ -15,9 +15,7 @@ async def git_notifications_update(): if fetching_git == 0: os.system("printf 'For apply tap button Get update and restart bot\nChanges:\n' > upd_info") commits = os.popen( - "git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD)").read() - os.popen( - "git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD) >> upd_info") + "git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD) | tee upd_info").read() if len(commits) <= 5: logger.info('updates not found, nothing to do') else: