summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocaldebpool7
1 files changed, 5 insertions, 2 deletions
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