From 2584efabd9c269022b968e86d7754a53264e4d29 Mon Sep 17 00:00:00 2001 From: Adam <24621027+WhiteDopeOnPunk@users.noreply.github.com> Date: Mon, 6 Feb 2023 09:56:30 -0500 Subject: [PATCH] check for yay to save time --- .scripts/doors/install_min_arch | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.scripts/doors/install_min_arch b/.scripts/doors/install_min_arch index c237d31..5042e18 100755 --- a/.scripts/doors/install_min_arch +++ b/.scripts/doors/install_min_arch @@ -6,11 +6,13 @@ if test -d yay; then rm -rf yay fi -git clone https://aur.archlinux.org/yay.git && - cd yay && - makepkg -si --noconfirm && - cd && - rm -rf yay +if ! type "yay" &> /dev/null; then + git clone https://aur.archlinux.org/yay.git && + cd yay && + makepkg -si --noconfirm && + cd && + rm -rf yay +fi # Base/Shell yay -S --needed --noconfirm \