From 765e29b67cf139efb1e88d428f95f71b5f0f01bb Mon Sep 17 00:00:00 2001 From: Zuyi Hu Date: Mon, 25 Jan 2016 12:36:50 +1000 Subject: Fix testing of arrays status for arch specific variables Signed-off-by: Allan McRae --- scripts/libmakepkg/lint_pkgbuild/variable.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/libmakepkg/lint_pkgbuild') 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 -- cgit v1.2.3-24-g4f1b