Skip to content

Commit

Permalink
Remove outputs of commands following the alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyuki-komatsu committed May 17, 2024
1 parent 452aecb commit b955086
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/build_tools/codesign_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@

def RunOrDie(command):
"""Run the command, or die if it failed."""
print("Running: " + command)
try:
output = subprocess.check_output(command, shell=True)
print("==========", file=sys.stderr)
print("COMMAND: " + command, file=sys.stderr)
print(output.decode("utf-8"), file=sys.stderr)
except subprocess.CalledProcessError as e:
print("==========", file=sys.stderr)
print("ERROR: " + command, file=sys.stderr)
print(e.output, file=sys.stderr)
print("==========", file=sys.stderr)
sys.exit(1)
Expand Down

0 comments on commit b955086

Please sign in to comment.