Skip to content

Commit

Permalink
follow-cvelist.py git pull output to stderr
Browse files Browse the repository at this point in the history
All verbose (debug) output should go to stderr.
  • Loading branch information
oh2fih committed Jul 30, 2024
1 parent 7c86751 commit 7659d1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/follow-cvelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ def monitor(self):
def pull(self):
"""Runs git pull"""
if self.args.verbose > 1:
subprocess.call(["git", "pull"])
result = subprocess.run(
["git", "pull"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT
)
print(result.stdout.decode("utf-8").strip(), file=sys.stderr)
else:
subprocess.call(
["git", "pull"], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT
Expand Down

0 comments on commit 7659d1a

Please sign in to comment.