void-packages/common/hooks/post-install/02-remove-python-bytecode-files.sh
Alessio Sergi d0b4ad9dfa hooks/post-install/remove-python-bytecode-files: quote arguments properly
This fixes the error 'find: paths must precede expression'.
2014-11-15 16:05:06 +01:00

6 lines
118 B
Bash

# This hook removes python bytecode files (.py[co]).
hook() {
find ${PKGDESTDIR} -type f -name '*.py[co]' -delete
}