1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-14 02:48:06 +01:00
void-packages/common/hooks/post-install/02-remove-python-bytecode-files.sh

8 lines
168 B
Bash
Raw Permalink Normal View History

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