Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2019-08-28 19:41:50 +0300
committerBryan Drewery <bryan@shatow.net>2019-08-28 19:41:50 +0300
commit1790b8e5b2ea75c908eeb984b1d6f5bb973cf43d (patch)
tree2c4ada628b832357400888464dfff37c07d325d0 /src
parentd299c28098087f4589ce35e11121c2265cf7af23 (diff)
distclean: Remove empty directories when done.
Fixes #699
Diffstat (limited to 'src')
-rwxr-xr-xsrc/share/poudriere/distclean.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/share/poudriere/distclean.sh b/src/share/poudriere/distclean.sh
index b1716d29..e8881739 100755
--- a/src/share/poudriere/distclean.sh
+++ b/src/share/poudriere/distclean.sh
@@ -188,3 +188,6 @@ do_confirm_delete "${DISTFILES_LIST}.unexpected" "stale distfiles" \
if [ ${ret} -eq 2 ]; then
exit 0
fi
+if [ "${DRY_RUN}" -eq 1 ]; then
+ find ${DISTFILES_CACHE}/ -type d -empty -delete
+fi