summaryrefslogtreecommitdiff
path: root/db-sync
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 20:53:38 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:00:14 -0500
commit39fbf0d8d3cdc666912c597d41d5b6a70fc0c725 (patch)
tree75431027d99758dbe1f13896c8ff0ef97e14e766 /db-sync
parente7d2dcac7cf857fdccd82bec2bfc2a7d8e6b85c6 (diff)
Fix some array quoting.
Diffstat (limited to 'db-sync')
-rwxr-xr-xdb-sync5
1 files changed, 2 insertions, 3 deletions
diff --git a/db-sync b/db-sync
index e4b6966..3595876 100755
--- a/db-sync
+++ b/db-sync
@@ -67,8 +67,8 @@ init() {
get_repos
# Traverse all repo-arch pairs
- for _repo in ${ARCHREPOS[@]}; do
- for _arch in ${ARCHARCHES[@]}; do
+ for _repo in "${ARCHREPOS[@]}"; do
+ for _arch in "${ARCHARCHES[@]}"; do
msg "Processing ${_repo}-${_arch}"
db_file=$(get_repo_file ${_repo} ${_arch})${DBEXT}
@@ -165,7 +165,6 @@ init() {
rsync://${mirror}/${mirrorpath}/${SRCPOOL}/ \
${FTP_BASE}/${SRCPOOL}/
done
-
# Cleanup
unset blacklist whitelists _arch _repo repo_file