From 0c85bcbaa5e750efe7f088fec253bbe7ca0506f3 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 29 Jul 2012 11:27:46 +0200 Subject: Clear empty dirs and files. --- localdebpool | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'localdebpool') diff --git a/localdebpool b/localdebpool index a17cedd..88152e0 100755 --- a/localdebpool +++ b/localdebpool @@ -196,9 +196,12 @@ else exit 1 fi -echo "Clean dangling symlinks..." +echo "Clear empty dirs and files, and clean dangling symlinks..." +debugprint "find \"$PRVBASE\" -empty -delete" +find "$PRVBASE" -empty -delete +debugprint "find \"$PUBBASE\" -empty -delete" +find "$PUBBASE" -empty -delete if [ -n "$DEBUG" ] && [ "$DEBUG" -ge 3 ]; then - echo "Clean dangling symlinks below \"$PRVBASE\" and \"$PUBBASE\"..." debugprint "symlinks -dr ${DEBUG:+-v} \"$PRVBASE\" \"$PUBBASE\"" symlinks -dr ${DEBUG:+-v} "$PRVBASE" "$PUBBASE" else -- cgit v1.2.3