diff options
author | Zuyi Hu <hzy068808@gmail.com> | 2016-01-25 03:36:50 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-01-25 03:36:50 +0100 |
commit | 765e29b67cf139efb1e88d428f95f71b5f0f01bb (patch) | |
tree | ee2984b6bb7d1a1aba98f7da82f70e8fc0afd71f /scripts/libmakepkg/lint_pkgbuild | |
parent | ad65462a059a1f5e4ce75bbb17ffc1538e5b6198 (diff) | |
download | pacman-765e29b67cf139efb1e88d428f95f71b5f0f01bb.tar.gz pacman-765e29b67cf139efb1e88d428f95f71b5f0f01bb.tar.xz |
Fix testing of arrays status for arch specific variables
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/lint_pkgbuild')
-rw-r--r-- | scripts/libmakepkg/lint_pkgbuild/variable.sh.in | 2 |
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 |