From 34816e7e16c4c337888d2518222268096f67c4fc Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Wed, 3 May 2017 15:31:58 +0800 Subject: [PATCH] BaseTools: remove the hardcoded /bin/bash for PreBuild/PostBuild This patch remove the hardcoded /bin/bash for PreBuild/PostBuild scripts. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index 45ccac1e13..bd14e273d2 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1039,7 +1039,7 @@ class Build(): Process = Popen(args, stdout=PIPE, stderr=PIPE) else: args = ' && '.join((self.Prebuild, 'env > ' + PrebuildEnvFile)) - Process = Popen(args, stdout=PIPE, stderr=PIPE, shell=True, executable="/bin/bash") + Process = Popen(args, stdout=PIPE, stderr=PIPE, shell=True) # launch two threads to read the STDOUT and STDERR EndOfProcedure = Event() @@ -1081,7 +1081,7 @@ class Build(): if sys.platform == "win32": Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE) else: - Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE, shell=True, executable="/bin/bash") + Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE, shell=True) # launch two threads to read the STDOUT and STDERR EndOfProcedure = Event() EndOfProcedure.clear()