fix yay no confirm

This commit is contained in:
2026-06-03 14:53:20 -06:00
parent 4fbba02cfa
commit d5ba0c9285
2 changed files with 6 additions and 4 deletions

View File

@@ -47,7 +47,9 @@ install_packages "${FONTS[@]}"
echo "Updating AUR..."
if ! yay -Sua 2>/dev/null; then
YAY_FLAGS="--noconfirm --nodiffmenu --nocleanmenu --noeditmenu"
if ! yay -Sua $YAY_FLAGS 2>/dev/null; then
echo "yay -Sua returned an error. Let's rebuild YAY."
sudo pacman -R yay
cd /tmp
@@ -57,9 +59,9 @@ if ! yay -Sua 2>/dev/null; then
cd ..
rm -rf yay
cd
yay -Sua --noconfirm
yay -Sua $YAY_FLAGS
else
yay -Sua --noconfirm
echo "AUR up to date."
fi
echo "Updating Flatpaks..."

View File

@@ -23,7 +23,7 @@ install_packages() {
if [ ${#to_install[@]} -ne 0 ]; then
echo "Installing: ${to_install[*]}"
yay -S --noconfirm "${to_install[@]}"
yay -S --noconfirm --nodiffmenu --nocleanmenu --noeditmenu "${to_install[@]}"
fi
}