diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-16 22:06:51 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-17 23:59:26 -0600 |
commit | 761b56dcffedc6e484d38c74267810e491add951 (patch) | |
tree | 52a56d5eff8db064d2a5ca0c6dd81e9da0b24935 /db-functions | |
parent | 33b8cb611363102e23972cf3914a03d65cb3cad8 (diff) |
touch up
Diffstat (limited to 'db-functions')
-rw-r--r-- | db-functions | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db-functions b/db-functions index c98b26f..dabb22b 100644 --- a/db-functions +++ b/db-functions @@ -369,8 +369,8 @@ check_pkgrepos() { #usage: chk_license ${license[@]}" chk_license() { local l - for l in ${@}; do - in_array ${l} ${ALLOWED_LICENSES[@]} && return 0 + for l in "${@}"; do + in_array "${l}" "${ALLOWED_LICENSES[@]}" && return 0 done return 1 @@ -382,7 +382,7 @@ check_repo_permission() { [ ${#PKGREPOS[@]} -eq 0 ] && return 1 [ -z "${PKGPOOL}" ] && return 1 - in_array "${repo}" ${PKGREPOS[@]} || return 1 + in_array "${repo}" "${PKGREPOS[@]}" || return 1 [ -w "$FTP_BASE/${PKGPOOL}" ] || return 1 |