diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 14:22:32 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 14:22:32 -0400 |
commit | e5b35d14b8f81d1ecf1d6eb77aa20c7b7ca303e9 (patch) | |
tree | 08929fc29ae407f0a803f4166839a4f8832f05a5 /db-cleanup | |
parent | f8296b65608ea5414de118653b3929493d81a94c (diff) |
db-cleanup: delete symlinks in one pass
Diffstat (limited to 'db-cleanup')
-rwxr-xr-x | db-cleanup | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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[@]}" |