Skip to content

Commit

Permalink
Set pipefail option in subprocesses
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Thomas committed Oct 4, 2017
1 parent e96c8a0 commit a9b40d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/util/process_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def Popen_with_delayed_expansion(cmd, *args, **kwargs):
else:
cmd_with_deplayed_expansion.extend(cmd)
cmd = cmd_with_deplayed_expansion
else:
if kwargs.get('shell') is True:
cmd = 'set -o pipefail; ' + cmd
return subprocess.Popen(cmd, *args, **kwargs)


Expand Down

0 comments on commit a9b40d1

Please sign in to comment.