extract yay call into bash script
This commit is contained in:
parent
b87e2b855a
commit
f4ec72e937
1 changed files with 4 additions and 1 deletions
|
@ -25,9 +25,12 @@ runs:
|
||||||
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"
|
sudo -u user -- bash -c "cd ~ && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si --noconfirm"
|
||||||
|
echo "#!/bin/bash -ex" >/usr/local/bin/yay.sh
|
||||||
|
echo "sudo -u user -- yay \"\${@}\"" >>/usr/local/bin/yay.sh
|
||||||
|
chmod +x /usr/local/bin/yay.sh
|
||||||
|
|
||||||
chmod 777 .
|
chmod 777 .
|
||||||
sudo -u user PACMAN="sudo -u user -- yay" makepkg -s --noconfirm
|
sudo -u user PACMAN="/usr/local/bin/yay.sh" makepkg -s --noconfirm
|
||||||
sudo -u user makepkg --printsrcinfo >.SRCINFO.new
|
sudo -u user makepkg --printsrcinfo >.SRCINFO.new
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue