u
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user