add --needed flag for second attempt at installing dependencies

This commit is contained in:
2026-02-22 08:32:11 +01:00
parent 43de006a49
commit 1c54ed9ebd

View File

@@ -90,7 +90,7 @@ if [ ! "X$dependencies" = 'X' ]; then
echo -e '\nInstalling dependencies ...' >&2
if ! yay -S --needed --noconfirm $dependencies; then
if yay -Syu; then
yay -S --noconfirm $dependencies
yay -S --needed --noconfirm $dependencies
else
echo -e '\nUnable to fetch package list. Aborting ...' >&2
exit 1