From 7324a30ae9861130a8ace81e2c3012fae07c6f32 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 2 Jun 2025 10:34:34 +0200 Subject: [PATCH] Only install yay if its not there --- install/1-yay.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install/1-yay.sh b/install/1-yay.sh index ca3c7fc..adf1978 100644 --- a/install/1-yay.sh +++ b/install/1-yay.sh @@ -1,6 +1,9 @@ sudo pacman -S --needed --noconfirm base-devel -git clone https://aur.archlinux.org/yay-bin.git -cd yay-bin -makepkg -si --noconfirm -cd ~ -rm -rf yay-bin + +if ! command -v yay &>/dev/null; then + git clone https://aur.archlinux.org/yay-bin.git + cd yay-bin + makepkg -si --noconfirm + cd ~ + rm -rf yay-bin +fi