summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-20 16:25:07 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-20 16:25:07 -0300
commit7a2f916a360b16c3649622d9f04c6424aab8f32d (patch)
tree489f2506e95617626fa74676fe418bbfb9e4ad2a
parent43aacb891613909fdb0e2898fc9d85bfa20bcfad (diff)
Remove broken symlinks after cleanup
-rwxr-xr-xdb-cleanup4
1 files changed, 4 insertions, 0 deletions
diff --git a/db-cleanup b/db-cleanup
index 72790f1..904c06e 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -60,4 +60,8 @@ for POOL in ${PKGPOOLS[@]} ${SRCPOOLS[@]}; do
${FTP_BASE}/${POOL}/
done
+msg "Removing symlinks:"
+find -L ${FTP_BASE}/ -type l
+${CLEANUP_DRYRUN} || find -L ${FTP_BASE}/ -type l -delete
+
exit $?