diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-17 18:13:39 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-17 14:46:10 -0400 |
commit | fce7610461f8970ea09c8915a83307a5750bcce9 (patch) | |
tree | 44d388bf3eeb6856db49144cf511caf215ea9bff /db-functions | |
parent | e4e5a028843316edf73cae4ac70d9df3cf8e1565 (diff) |
db-functions: Fix check_repo_permission checking all architectures
It mistakenly looped over just the first element of the ARCHES array,
instead of the entire array. This meant that it only checked the
permissions for one architecture.
Diffstat (limited to 'db-functions')
-rw-r--r-- | db-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db-functions b/db-functions index aebfb34..62d0d72 100644 --- a/db-functions +++ b/db-functions @@ -483,7 +483,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 |