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}``
|
||||
# hence the list of aur packages is written to a file, which is used with yay
|
||||
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
|
||||
echo "No AUR packages to install"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user