This commit is contained in:
tuxwarrior
2024-05-04 13:10:54 -05:00
parent 4666eac02a
commit ccf5d78491

View File

@@ -107,7 +107,7 @@ if [ ${operation} == "update" ] ; then
# using sudo with the -c flag, it does not work to use variables, like `${list_aur}`` # using sudo with the -c flag, it does not work to use variables, like `${list_aur}``
# hence the list of aur packages is written to a file, which is used with yay # hence the list of aur packages is written to a file, which is used with yay
echo ${list_aur} > /tmp/list_aur.txt echo ${list_aur} > /tmp/list_aur.txt
sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate - $(</tmp/list_aur.txt)' sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate $(</tmp/list_aur.txt)'
else else
echo "No AUR packages to install" echo "No AUR packages to install"
fi fi