summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg
diff options
context:
space:
mode:
authorZuyi Hu <hzy068808@gmail.com>2016-01-25 12:36:50 +1000
committerAllan McRae <allan@archlinux.org>2016-01-25 12:36:50 +1000
commit765e29b67cf139efb1e88d428f95f71b5f0f01bb (patch)
treeee2984b6bb7d1a1aba98f7da82f70e8fc0afd71f /scripts/libmakepkg
parentad65462a059a1f5e4ce75bbb17ffc1538e5b6198 (diff)
Fix testing of arrays status for arch specific variables
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg')
-rw-r--r--scripts/libmakepkg/lint_pkgbuild/variable.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/lint_pkgbuild/variable.sh.in b/scripts/libmakepkg/lint_pkgbuild/variable.sh.in
index 4943c500..183e7401 100644
--- a/scripts/libmakepkg/lint_pkgbuild/variable.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/variable.sh.in
@@ -57,7 +57,7 @@ lint_variable() {
v="${i}_${a}"
eval "keys=(\"\${!${v}[@]}\")"
if (( ${#keys[*]} > 0 )); then
- if [[ "$(declare -p $i)" != "declare -a "* ]]; then
+ if [[ "$(declare -p $v)" != "declare -a "* ]]; then
error "$(gettext "%s_%s should be an array")" "$i" "$a"
ret=1
fi