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