diff options
author | Jonas Smedegaard <dr@jones.dk> | 2012-07-29 11:27:46 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2012-07-29 11:28:15 +0200 |
commit | 0c85bcbaa5e750efe7f088fec253bbe7ca0506f3 (patch) | |
tree | df1fa93163c323ec5e5ba24122fb422335bed44e | |
parent | 9371e681936821e21e84f43c37cda8b1129575fd (diff) |
Clear empty dirs and files.
-rwxr-xr-x | localdebpool | 7 |
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 |