summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:02:13 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:02:13 -0500
commitcad2d8b7075cb255f76e79c12c23acee94074514 (patch)
tree6c94a40f44d93e22a31472a679c3b660f2c913af /cron-jobs
parent607b95c40e8ff5fbb452a1594d96ec6cac43df40 (diff)
repo-sanity-check: take advantage of printf
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/repo-sanity-check5
1 files changed, 3 insertions, 2 deletions
diff --git a/cron-jobs/repo-sanity-check b/cron-jobs/repo-sanity-check
index 9d351df..8b0758f 100755
--- a/cron-jobs/repo-sanity-check
+++ b/cron-jobs/repo-sanity-check
@@ -41,8 +41,9 @@ for _repo in "${PKGREPOS[@]}"; do
))
# Compares them, whatever is on repos but not on abs should be removed
- remove=($(comm -13 <(echo ${on_abs[@]} | tr ' ' "\n" | sort -u) \
- <(echo ${on_repo[@]} | tr ' ' "\n" | sort -u)))
+ remove=($(comm -13 \
+ <(printf '%s\n' "${on_abs[@]}" | sort -u) \
+ <(printf '%s\n' "${on_repo[@]}" | sort -u) ))
# Remove them from databases, ftpdir-cleanup will take care of the rest
find ${FTP_BASE}/${_repo} -name "*.db.tar.?z" -exec \