From 51c3a00f47e830ffbb997917596580f0ae6a8eb0 Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 16:44:17 -0500 Subject: [PATCH] u --- scripts/99_yay.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/99_yay.sh b/scripts/99_yay.sh index df01bf4..6393189 100644 --- a/scripts/99_yay.sh +++ b/scripts/99_yay.sh @@ -19,14 +19,15 @@ sudo pacman -Syu # install dependencies pacman -S --needed --noconfirm go -# install yay rm -rf /tmp/yay -runuser -l ${user}-c 'git clone https://aur.archlinux.org/yay.git /tmp/yay' +# clone repo +runuser -l ${user} -c 'git clone https://aur.archlinux.org/yay.git /tmp/yay' + +# build yay # https://askubuntu.com/questions/294736/run-a-shell-script-as-another-user-that-has-no-password sudo -u ${user} bash -c 'cd /tmp/yay && makepkg -si' - #runuser -l ${user} -c 'cd /tmp/yay && makepkg -si' # test yay