Skip to content

Commit

Permalink
Make sure that output piping doesnot silence failures
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Nov 11, 2024
1 parent ec26e6b commit cd102ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ilcsoft/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def os_system( cmd ):
""" forces os.system calls wto use bash """
cmd = cmd.replace('"',r'\"')
##print('os_system: ', 'bash -c "'+cmd+'"')
return os.system('pwd ; bash -c "'+cmd+'"')
return os.system('pwd ; bash -o pipefail -c "'+cmd+'"')

#--------------------------------------------------------------------------------

Expand Down

0 comments on commit cd102ba

Please sign in to comment.