This commit is contained in:
tuxwarrior
2024-05-01 16:53:48 -05:00
parent b45b83a253
commit 6304507b81

View File

@@ -6,6 +6,8 @@
echo "<< 99_software.sh >>"
user=poq
if [ "$EUID" -ne 0 ]
then echo "error: run as 'root'"
exit
@@ -103,7 +105,7 @@ if [ ${operation} == "update" ] ; then
if [[ -n "$list_aur" ]]
then
yay -S --needed --noconfirm --timeupdate $list_aur
runuser -l ${user} -c 'yay -S --needed --noconfirm --timeupdate $list_aur'
else
echo "No AUR packages to install"
fi