OSDN Git Service

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

index e7ff8a7..fea0a50 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -618,7 +618,7 @@ prepare_build() {
             local __pkg __ver
             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)
+                    __ver=$(pacman -Sp --print-format '%v' --config ${build_pacman_conf} ${1} 2> /dev/null)
                     if [[ "${_installed_ver[${__pkg}]}" = "${__ver}" ]]; then
                         echo -n "installed"
                         return 0