]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools Build: Fix build break for clean target in Linux
authorHao Wu <hao.a.wu@intel.com>
Thu, 29 Sep 2016 14:47:38 +0000 (22:47 +0800)
committerLiming Gao <liming.gao@intel.com>
Fri, 30 Sep 2016 06:13:53 +0000 (14:13 +0800)
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>
BaseTools/Source/Python/build/build.py

index b003c6740356df8b9109087797562735ec10bb90..f17b55c4cfa8003938ab43f634c3003b2819da97 100644 (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(),\r
     # ubuntu may fail with an error message that the command is not found.\r
     # So here we may need convert command from string to list instance.\r
-    if not isinstance(Command, list):\r
-        if platform.system() != 'Windows':\r
+    if platform.system() != 'Windows':\r
+        if not isinstance(Command, list):\r
             Command = Command.split()\r
-            Command = ' '.join(Command)\r
+        Command = ' '.join(Command)\r
 \r
     Proc = None\r
     EndOfProcedure = None\r