new update system

This commit is contained in:
2026-06-10 08:26:38 -06:00
parent b1d4e2565f
commit 9c5c1e158f
7 changed files with 76 additions and 58 deletions

20
updates.d/20-aur.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
echo "Updating AUR..."
YAY_FLAGS="--noconfirm --answerdiff=None --answeredit=None --answerclean=None"
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
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
cd
yay -Sua $YAY_FLAGS
else
echo "AUR up to date."
fi