Use shell for globbing in clean.
authorTim 'mithro' Ansell <mithro@mithis.com>
Wed, 12 Aug 2015 11:28:49 +0000 (12:28 +0100)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 13 Aug 2015 06:54:58 +0000 (14:54 +0800)
make.py

diff --git a/make.py b/make.py
index d3ddc7a3561991908a2c9e16f376c928c88203fc..b0d3967d7d4babcbf887a8bfc80b5e42dc1e57fe 100755 (executable)
--- a/make.py
+++ b/make.py
@@ -136,7 +136,7 @@ CPU type:  {}
         actions["build-headers"] = True
 
     if actions["clean"]:
-        subprocess.check_call(["rm", "-rvf", "build/*"])
+        subprocess.check_call("rm -rvf build/*", shell=True) # Need shell for the build/* globbing
         subprocess.check_call(["make", "-C", os.path.join("software", "libcompiler-rt"), "clean"])
         subprocess.check_call(["make", "-C", os.path.join("software", "libbase"), "clean"])
         subprocess.check_call(["make", "-C", os.path.join("software", "libnet"), "clean"])