makepkg is annoying

This commit is contained in:
Dominic 2023-03-25 13:53:10 +01:00
parent c0ac367326
commit c8c5165c99
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -20,9 +20,12 @@ runs:
args: | args: |
-euo pipefail -c ' -euo pipefail -c '
pacman -Syu --noconfirm git pacman -Syu --noconfirm git
(cd ~; git clone https://aur.archlinux.org/yay.git; cd yay; makepkg -si --noconfirm)
useradd -m user useradd -m user
echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user
sudo -u user -- bash -c "cd ~ && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si --noconfirm"
chmod 777 . chmod 777 .
sudo -u user -- PACMAN=yay makepkg -s --noconfirm sudo -u user -- PACMAN=yay makepkg -s --noconfirm
' '