OSDN Git Service

[fix] : Re install package only if it was failed
authorhayao <hayao@fascode.net>
Sun, 8 Aug 2021 11:45:00 +0000 (20:45 +0900)
committerhayao <hayao@fascode.net>
Sun, 8 Aug 2021 11:45:00 +0000 (20:45 +0900)
system/aur.sh

index b051439..fd1db2d 100755 (executable)
@@ -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"