Explorar el Código

Improve removepyc script

Ask Solem hace 13 años
padre
commit
9136df63a2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      contrib/release/removepyc.sh

+ 2 - 2
contrib/release/removepyc.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
-find "${1:-.}" -name "*.pyc" | xargs rm
-find "${1:-.}" -name "*\$py.class" | xargs rm
+(cd "{$1:-.}";
+        find . -name "*.pyc" | xargs rm -- 2>/dev/null) || echo "ok"