i forgot what tee command exists
This commit is contained in:
parent
46add00fbf
commit
1203049e60
1 changed files with 1 additions and 3 deletions
|
@ -15,9 +15,7 @@ async def git_notifications_update():
|
||||||
if fetching_git == 0:
|
if fetching_git == 0:
|
||||||
os.system("printf 'For apply tap button Get update and restart bot\nChanges:\n' > upd_info")
|
os.system("printf 'For apply tap button Get update and restart bot\nChanges:\n' > upd_info")
|
||||||
commits = os.popen(
|
commits = os.popen(
|
||||||
"git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD)").read()
|
"git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD) | tee upd_info").read()
|
||||||
os.popen(
|
|
||||||
"git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD) >> upd_info")
|
|
||||||
if len(commits) <= 5:
|
if len(commits) <= 5:
|
||||||
logger.info('updates not found, nothing to do')
|
logger.info('updates not found, nothing to do')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue