change to update format

This commit is contained in:
David Young
2026-10-23 08:04:42 -06:00
parent 0b2ac8ca29
commit 872ad4b831
14 changed files with 663 additions and 111 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
echo "Updating AUR..."
YAY_FLAGS="--noconfirm --answerdiff=None --answeredit=None --answerclean=None"
# Only rebuild yay when yay itself is broken (e.g. a pacman upgrade bumped
# libalpm). A failing AUR package is not fixed by a rebuild, so let that error
# show and fail the hook instead.
if ! yay --version &>/dev/null; then
echo "yay is broken (likely a libalpm bump). Rebuilding yay..."
sudo pacman -R --noconfirm yay
cd /tmp
rm -rf yay
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd ..
rm -rf yay
cd
fi
yay -Sua $YAY_FLAGS