fix yay no confirm
This commit is contained in:
@@ -47,7 +47,9 @@ install_packages "${FONTS[@]}"
|
|||||||
|
|
||||||
echo "Updating AUR..."
|
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."
|
echo "yay -Sua returned an error. Let's rebuild YAY."
|
||||||
sudo pacman -R yay
|
sudo pacman -R yay
|
||||||
cd /tmp
|
cd /tmp
|
||||||
@@ -57,9 +59,9 @@ if ! yay -Sua 2>/dev/null; then
|
|||||||
cd ..
|
cd ..
|
||||||
rm -rf yay
|
rm -rf yay
|
||||||
cd
|
cd
|
||||||
yay -Sua --noconfirm
|
yay -Sua $YAY_FLAGS
|
||||||
else
|
else
|
||||||
yay -Sua --noconfirm
|
echo "AUR up to date."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Updating Flatpaks..."
|
echo "Updating Flatpaks..."
|
||||||
|
|||||||
2
utils.sh
2
utils.sh
@@ -23,7 +23,7 @@ install_packages() {
|
|||||||
|
|
||||||
if [ ${#to_install[@]} -ne 0 ]; then
|
if [ ${#to_install[@]} -ne 0 ]; then
|
||||||
echo "Installing: ${to_install[*]}"
|
echo "Installing: ${to_install[*]}"
|
||||||
yay -S --noconfirm "${to_install[@]}"
|
yay -S --noconfirm --nodiffmenu --nocleanmenu --noeditmenu "${to_install[@]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user