From baf516edbdb5ebd2b04ab683927f30b8f0550f68 Mon Sep 17 00:00:00 2001 From: Matt C Date: Wed, 20 Oct 2021 11:17:23 -0400 Subject: [PATCH] hopefully fixed #1 --- continue.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/continue.sh b/continue.sh index 83c110d..0298309 100755 --- a/continue.sh +++ b/continue.sh @@ -39,7 +39,11 @@ if [[ "$MORE" == "y" || "$MORE" == "Y" ]]; then prompt "Preferred editor" PGRM="$response" echo "PGRM=$response" - if [[ -x "$(command -v ${PGRM})" ]]; then + + inf "Checking if we have ${PGRM} already.." + which ${PGRM} + + if [[ "$?" == "1" ]]; then inf "Attempting to install ${PGRM}" pacman -Sy ${PGRM} --noconfirm fi