mirror of https://github.com/acidanthera/audk.git
BaseTools: remove the hardcoded /bin/bash for PreBuild/PostBuild
This patch remove the hardcoded /bin/bash for PreBuild/PostBuild scripts. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
717ba86de7
commit
34816e7e16
|
@ -1039,7 +1039,7 @@ class Build():
|
||||||
Process = Popen(args, stdout=PIPE, stderr=PIPE)
|
Process = Popen(args, stdout=PIPE, stderr=PIPE)
|
||||||
else:
|
else:
|
||||||
args = ' && '.join((self.Prebuild, 'env > ' + PrebuildEnvFile))
|
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
|
# launch two threads to read the STDOUT and STDERR
|
||||||
EndOfProcedure = Event()
|
EndOfProcedure = Event()
|
||||||
|
@ -1081,7 +1081,7 @@ class Build():
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE)
|
Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE)
|
||||||
else:
|
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
|
# launch two threads to read the STDOUT and STDERR
|
||||||
EndOfProcedure = Event()
|
EndOfProcedure = Event()
|
||||||
EndOfProcedure.clear()
|
EndOfProcedure.clear()
|
||||||
|
|
Loading…
Reference in New Issue