From cd102ba6543a9eec308caf5f21c478581a87ab79 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Mon, 11 Nov 2024 20:19:43 +0100 Subject: [PATCH] Make sure that output piping doesnot silence failures --- ilcsoft/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ilcsoft/util.py b/ilcsoft/util.py index 2eb4dc88..d6865459 100644 --- a/ilcsoft/util.py +++ b/ilcsoft/util.py @@ -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+'"') #--------------------------------------------------------------------------------