Skip to content

Commit 9136df6

Browse files
committed
Improve removepyc script
1 parent 99c5d74 commit 9136df6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/release/removepyc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
find "${1:-.}" -name "*.pyc" | xargs rm
3-
find "${1:-.}" -name "*\$py.class" | xargs rm
2+
(cd "{$1:-.}";
3+
find . -name "*.pyc" | xargs rm -- 2>/dev/null) || echo "ok"

0 commit comments

Comments
 (0)