evolution-packages/common/hooks/post-install/02-remove-python-bytecode-f...

8 lines
168 B
Bash
Raw Normal View History

2023-08-05 21:19:04 +01:00
# This hook removes python bytecode files (.py[co]).
hook() {
if [ -d "${PKGDESTDIR}" ]; then
find ${PKGDESTDIR} -type f -name '*.py[co]' -delete
fi
}