summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:21:18 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:21:18 -0400
commit108262939f3b80bc82e1a2eec983944f448f2afd (patch)
tree53c93aeca5ffe40a942481e860b39167da8c77fa
parent12faf7365342bcfebb951dd748d48b5db8a1acba (diff)
db-functions:check_repo_permissions: ARCHES is an array
-rw-r--r--db-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/db-functions b/db-functions
index e45f673..ca43259 100644
--- a/db-functions
+++ b/db-functions
@@ -472,7 +472,7 @@ check_repo_permission() {
[ -w "$FTP_BASE/${PKGPOOL}" ] || return 1
local arch
- for arch in ${ARCHES}; do
+ for arch in "${ARCHES[@]}"; do
local dir="${FTP_BASE}/${repo}/os/${arch}/"
[ -w "${dir}" ] || return 1
[ -f "${dir}${repo}"${DBEXT} -a ! -w "${dir}${repo}"${DBEXT} ] && return 1