OSDN Git Service

[fix] : Do not install with makepkg
authorhayao <hayao@fascode.net>
Mon, 22 Nov 2021 13:29:48 +0000 (22:29 +0900)
committerhayao <hayao@fascode.net>
Mon, 22 Nov 2021 13:29:48 +0000 (22:29 +0900)
system/aur.sh

index 7caa92a..f1aa674 100755 (executable)
@@ -114,10 +114,10 @@ if ! pacman -Qq "${aur_helper_package}" 1> /dev/null 2>&1; then
     # Build
     sudo -u "${aur_username}" git clone "https://aur.archlinux.org/${aur_helper_package}.git" "/tmp/${aur_helper_package}"
     cd "/tmp/${aur_helper_package}"
-    sudo -u "${aur_username}" makepkg --ignorearch --clean --cleanbuild --force --skippgpcheck --noconfirm --install --syncdeps
+    sudo -u "${aur_username}" makepkg --ignorearch --clean --cleanbuild --force --skippgpcheck --noconfirm --syncdeps
 
     # Install
-    for _pkg in $(sudo -u "${aur_username}" makepkg --packagelist); do
+    for _pkg in $(cd "/tmp/${aur_helper_package}"; sudo -u "${aur_username}" makepkg --packagelist); do
         pacman "${pacman_args[@]}" -U "${_pkg}"
     done