aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/post-install
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-04-26 07:46:02 +0000
committerJuan RP <xtraeme@voidlinux.eu>2015-04-26 07:46:02 +0000
commitf4019408cacd595170abc977c741ade41525377a (patch)
tree33e76309caef327112dc024101d9c6f283cf2f5c /common/hooks/post-install
parent5078a553a3fa5be798e3116373e83a011ab22dca (diff)
downloadvoid-packages-f4019408cacd595170abc977c741ade41525377a.tar
void-packages-f4019408cacd595170abc977c741ade41525377a.tar.gz
void-packages-f4019408cacd595170abc977c741ade41525377a.tar.bz2
void-packages-f4019408cacd595170abc977c741ade41525377a.tar.lz
void-packages-f4019408cacd595170abc977c741ade41525377a.tar.xz
void-packages-f4019408cacd595170abc977c741ade41525377a.tar.zst
void-packages-f4019408cacd595170abc977c741ade41525377a.zip
hooks/remote-empty-dirs: switch back to my version that really works.
I'm not sure how the guy that submitted the PR tested it, but IT DOES NOT WORK AS HE EXPECTED.
Diffstat (limited to 'common/hooks/post-install')
-rw-r--r--common/hooks/post-install/03-remove-empty-dirs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hooks/post-install/03-remove-empty-dirs.sh b/common/hooks/post-install/03-remove-empty-dirs.sh
index 00f198d52a2..4e73f6b34fc 100644
--- a/common/hooks/post-install/03-remove-empty-dirs.sh
+++ b/common/hooks/post-install/03-remove-empty-dirs.sh
@@ -1,7 +1,7 @@
# This hooks removes empty dirs and warns about them.
hook() {
- find ${PKGDESTDIR} -type d -empty -print0|sort -z -r|while IFS="" read f; do
+ for f in $(find ${PKGDESTDIR} -type d -empty|sort -r); do
_dir="${f##${PKGDESTDIR}}"
[ -z "${_dir}" ] && continue
rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null