summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-11 22:42:01 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-11 22:42:01 -0300
commitd2f65c340f890050c99371e203288afea03d125b (patch)
treedabae941a472819108d05414b876d6dc182f11ad
parent1d7db341d4f27f8ebd7167a8630ea8589e40c464 (diff)
Sort unique pkgnames
-rwxr-xr-xcron-jobs/repo-sanity-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-jobs/repo-sanity-check b/cron-jobs/repo-sanity-check
index 52ca33b..690a9f8 100755
--- a/cron-jobs/repo-sanity-check
+++ b/cron-jobs/repo-sanity-check
@@ -34,8 +34,8 @@ for _repo in ${REPOS[@]}; do
))
# Compares them, whatever is on repos but not on abs should be removed
- remove=($(comm -13 <(echo ${on_abs[@]} | tr ' ' "\n" | sort) \
- <(echo ${on_repo[@]} | tr ' ' "\n" | sort)))
+ remove=($(comm -13 <(echo ${on_abs[@]} | tr ' ' "\n" | sort -u) \
+ <(echo ${on_repo[@]} | tr ' ' "\n" | sort -u)))
# Remove them from databases, ftpdir-cleanup will take care of the rest
find ${FTP_BASE}/${_repo} -name "*.db.tar.?z" -exec \