diff --git a/scripts/Arch/Software/yay/install.sh b/scripts/Arch/Software/yay/install.sh index dc2d0ab3..4100899f 100755 --- a/scripts/Arch/Software/yay/install.sh +++ b/scripts/Arch/Software/yay/install.sh @@ -1,8 +1,12 @@ #!/bin/bash -sudo pacman -S --needed git base-devel -contextRoot="$(mktemp -d)"; +if ! command -v yay > /dev/null 2>&1 +then + sudo pacman -S --needed git base-devel + contextRoot="$(mktemp -d)"; + + git clone https://aur.archlinux.org/yay.git "$contextRoot"; + pushd "$contextRoot" > /dev/null; + makepkg --noconfirm -si; + popd > /dev/null; +fi; -git clone https://aur.archlinux.org/yay.git "$contextRoot"; -pushd "$contextRoot" > /dev/null; -makepkg --noconfirm -si; -popd > /dev/null;