From: hayao Date: Sun, 8 Aug 2021 11:45:00 +0000 (+0900) Subject: [fix] : Re install package only if it was failed X-Git-Tag: 20210913~91 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c4990a89dc528d7ded1f3ddab179cb757622ee96;p=alterlinux%2Falterlinux.git [fix] : Re install package only if it was failed --- diff --git a/system/aur.sh b/system/aur.sh index b0514395..fd1db2db 100755 --- a/system/aur.sh +++ b/system/aur.sh @@ -136,7 +136,7 @@ for _pkg in "${@}"; do done # Reinstall failed package -for _pkg in "${@}"; do +for _pkg in "${failedpkg[@]}"; do installpkg "${_pkg}" if ! pacman -Qq "${_pkg}" > /dev/null 2>&1; then echo -e "\n[aur.sh] Failed to install ${_pkg}\n"