diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-08-11 18:42:52 -0700 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-08-11 18:42:52 -0700 |
commit | 4060e42a9f0ff3cea719b1ddcc8abf0289f25f6b (patch) | |
tree | 7ce3ddf919ba2c0bdd12eeae61bffe02aacca739 | |
parent | dd2e0c834111111523581d003037f2c5060f82e3 (diff) | |
parent | d2f65c340f890050c99371e203288afea03d125b (diff) |
Merge branch 'master' of http://projects.parabolagnulinux.org/dbscripts into stable
-rwxr-xr-x | cron-jobs/repo-sanity-check | 4 |
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 \ |