blob: 06354fc7f5c9c5e34c668e1710ffff8e8dbe4dac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# This hooks removes empty dirs and warns about them.
hook() {
if [ -d "${PKGDESTDIR}" ]; then
find "${PKGDESTDIR}" -mindepth 1 -type d -empty -print -delete|sort -r|while read -r f; do
_dir="${f##${PKGDESTDIR}}"
msg_warn "$pkgver: removed empty dir: ${_dir}\n"
done
fi
}
|