diff --git a/coreupdate b/coreupdate index c26efbf..18b8764 100755 --- a/coreupdate +++ b/coreupdate @@ -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..." diff --git a/utils.sh b/utils.sh index a3d77fb..d8dcab0 100755 --- a/utils.sh +++ b/utils.sh @@ -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 }