Silence errors if they are missing

This commit is contained in:
David Heinemeier Hansson
2025-08-28 22:02:13 +02:00
parent 3e29949745
commit d9c69b8d02

View File

@@ -1,10 +1,10 @@
echo "Remove any Chaotic-AUR infrastructure packages"
if pacman -Q chaotic-keyring >/dev/null; then
if pacman -Q chaotic-keyring 2>/dev/null; then
sudo pacman -Rns --noconfirm chaotic-keyring
fi
if pacman -Q chaotic-mirrorlist >/dev/null; then
if pacman -Q chaotic-mirrorlist 2>/dev/null; then
sudo pacman -Rns --noconfirm chaotic-mirrorlist
fi