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:
parent
ad65462a05
commit
765e29b67c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user