summaryrefslogtreecommitdiff
path: root/localdebpool
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-07-29 11:27:46 +0200
committerJonas Smedegaard <dr@jones.dk>2012-07-29 11:28:15 +0200
commit0c85bcbaa5e750efe7f088fec253bbe7ca0506f3 (patch)
treedf1fa93163c323ec5e5ba24122fb422335bed44e /localdebpool
parent9371e681936821e21e84f43c37cda8b1129575fd (diff)
Clear empty dirs and files.
Diffstat (limited to 'localdebpool')
-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