summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdb-cleanup7
1 files changed, 3 insertions, 4 deletions
diff --git a/db-cleanup b/db-cleanup
index 989bda1..efe7397 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -64,7 +64,6 @@ for POOL in "${PKGPOOLS[@]}" "${SRCPOOLS[@]}"; do
done
msg "Removing dead symlinks:"
-find -L "${FTP_BASE}/" -type l
-"${CLEANUP_DRYRUN}" || find -L "${FTP_BASE}/" -type l -delete
-
-exit $?
+actions=(-print)
+"${CLEANUP_DRYRUN}" || actions+=(-delete)
+find -L "${FTP_BASE}/" -type l "${actions[@]}"