summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:22:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:22:32 -0400
commite5b35d14b8f81d1ecf1d6eb77aa20c7b7ca303e9 (patch)
tree08929fc29ae407f0a803f4166839a4f8832f05a5
parentf8296b65608ea5414de118653b3929493d81a94c (diff)
db-cleanup: delete symlinks in one pass
-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[@]}"