OSDN Git Service

[fix] : Run makepkg as aurbuild
authorhayao <hayao@fascode.net>
Sat, 20 Mar 2021 14:26:20 +0000 (23:26 +0900)
committerhayao <hayao@fascode.net>
Sat, 20 Mar 2021 14:26:20 +0000 (23:26 +0900)
system/aur.sh

index a3d1e6f..f7bee56 100755 (executable)
@@ -62,7 +62,7 @@ sed -i "s/#Server/Server/g" "/etc/pacman.d/mirrorlist"
     cd "/tmp/yay"
     pacman -Syy --noconfirm
     pacman --noconfirm -S --asdeps --needed go
-    makepkg --ignorearch --clean --cleanbuild --force --skippgpcheck --install
+    sudo -u aurbuild makepkg --ignorearch --clean --cleanbuild --force --skippgpcheck --install
     cd ..
     rm -rf "/tmp/yay"
     cd "${_oldpwd}"