BaseTools Build: Fix build break for clean target in Linux

In Linux, Command needs to be String instead of list when Command run
as shell with True.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Hao Wu 2016-09-29 22:47:38 +08:00 committed by Liming Gao
parent 0eb330424c
commit ed72804638
1 changed files with 3 additions and 3 deletions

View File

@ -265,10 +265,10 @@ def LaunchCommand(Command, WorkingDir):
# It could be a string or sequence. We find that if command is a string in following Popen(), # It could be a string or sequence. We find that if command is a string in following Popen(),
# ubuntu may fail with an error message that the command is not found. # ubuntu may fail with an error message that the command is not found.
# So here we may need convert command from string to list instance. # So here we may need convert command from string to list instance.
if not isinstance(Command, list): if platform.system() != 'Windows':
if platform.system() != 'Windows': if not isinstance(Command, list):
Command = Command.split() Command = Command.split()
Command = ' '.join(Command) Command = ' '.join(Command)
Proc = None Proc = None
EndOfProcedure = None EndOfProcedure = None