diff options
author | Allan McRae <allan@archlinux.org> | 2016-02-26 15:01:11 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-02-26 15:18:43 +1000 |
commit | d4f499f5638a68a3b7e17c5171aabdf535b79bd4 (patch) | |
tree | 1833d3b7604f6de7e01f5372c356a4f452a963aa /scripts | |
parent | df5dc0c9debcf40bd9fd00a1d64a2e1ee483a3dd (diff) | |
download | pacman-d4f499f5638a68a3b7e17c5171aabdf535b79bd4.tar.xz |
libmakepkg: fix is_array function
This happened to work for the majority of cases because the only calling
function used a variable named "i" that was related to the variable being
passed to the function.
Fixes FS#48340.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/libmakepkg/util/util.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/util/util.sh b/scripts/libmakepkg/util/util.sh index 675e75de..f9f1c200 100644 --- a/scripts/libmakepkg/util/util.sh +++ b/scripts/libmakepkg/util/util.sh @@ -46,7 +46,7 @@ is_array() { local shellopts=$(shopt -p) shopt -s extglob - if [[ $(declare -p "$i") == declare\ -*([[:alnum:]])a*([[:alnum:]])\ * ]]; then + if [[ $(declare -p "$v") == declare\ -*([[:alnum:]])a*([[:alnum:]])\ * ]]; then ret=0 fi |