Only install yay if its not there

This commit is contained in:
David Heinemeier Hansson
2025-06-02 10:34:34 +02:00
parent 09c5da1d64
commit 7324a30ae9

View File

@ -1,6 +1,9 @@
sudo pacman -S --needed --noconfirm base-devel sudo pacman -S --needed --noconfirm base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin if ! command -v yay &>/dev/null; then
makepkg -si --noconfirm git clone https://aur.archlinux.org/yay-bin.git
cd ~ cd yay-bin
rm -rf yay-bin makepkg -si --noconfirm
cd ~
rm -rf yay-bin
fi