clojure-lsp: update to 2024.08.05.
[void-pkg.git] / common / hooks / post-install / 03-remove-empty-dirs.sh
blob06354fc7f5c9c5e34c668e1710ffff8e8dbe4dac
1 # This hooks removes empty dirs and warns about them.
3 hook() {
4 if [ -d "${PKGDESTDIR}" ]; then
5 find "${PKGDESTDIR}" -mindepth 1 -type d -empty -print -delete|sort -r|while read -r f; do
6 _dir="${f##${PKGDESTDIR}}"
7 msg_warn "$pkgver: removed empty dir: ${_dir}\n"
8 done
9 fi