From 850c06a78207d713cd2e95621e60a2ba3810bb6a Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 16:23:22 -0500 Subject: [PATCH] u --- scripts/99_yay.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/99_yay.sh b/scripts/99_yay.sh index 9a1bfa3..ad78b31 100644 --- a/scripts/99_yay.sh +++ b/scripts/99_yay.sh @@ -6,6 +6,8 @@ echo "<< 99_yay.sh >>" +user=poq + if [ "$EUID" -ne 0 ] then echo "error: run as 'root'" exit @@ -15,5 +17,5 @@ rm -rf /tmp/yay cd /tmp git clone https://aur.archlinux.org/yay.git cd /tmp/yay -su poq makepkg -si -su poq yay --version +runuser -l ${user} -c 'makepkg -si' +runuser -l ${user} -c 'yay --version'