OSDN Git Service

[fix] : array name
authorhayao <shun819.mail@gmail.com>
Thu, 20 Aug 2020 01:52:27 +0000 (10:52 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 20 Aug 2020 01:52:27 +0000 (10:52 +0900)
build.sh

index a0c3603..e7ff8a7 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -616,7 +616,7 @@ prepare_build() {
 
         _check_pkg() {
             local __pkg __ver
-            for __pkg in $(seq 0 $(( ${#installed_pkg[@]} - 1 ))); do
+            for __pkg in $(seq 0 $(( ${#_installed_pkg[@]} - 1 ))); do
                 if [[ "${_installed_pkg[${__pkg}]}" = ${1} ]]; then
                     _ver=$(pacman -Sp --print-format '%v' --config ${build_pacman_conf} ${1} 2> /dev/null)
                     if [[ "${_installed_ver[${__pkg}]}" = "${__ver}" ]]; then