1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

Fix testing of arrays status for arch specific variables

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Zuyi Hu 2016-01-25 12:36:50 +10:00 committed by Allan McRae
parent ad65462a05
commit 765e29b67c

View File

@ -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