Explorar o código

Improve removepyc script

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
9136df63a2
Modificáronse 1 ficheiros con 2 adicións e 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"