From 81b8b13b33661c227629a9b462535856d44e0ca8 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Fri, 30 Aug 2024 14:02:57 +0200 Subject: [PATCH] fix: bad logic & remove inquirer if exists --- setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 59f7bb8..2487dd7 100755 --- a/setup.sh +++ b/setup.sh @@ -185,8 +185,10 @@ function waGetSourceCode() { # Name: 'waGetInquirer' # Role: Loads the inquirer script, even if the source isn't cloned yet function waGetInquirer() { - if [[ ! -d "$SYS_SOURCE_PATH" || ! -d "$USER_SOURCE_PATH" ]]; then + if [ ! -d "$SYS_SOURCE_PATH" ] && [ ! -d "$USER_SOURCE_PATH" ]; then INQUIRER_PATH="/tmp/waInquirer.sh" + rm -f "$INQUIRER_PATH" + curl "https://raw.githubusercontent.com/winapps-org/winapps/main/install/inquirer.sh" -O "$INQUIRER_PATH" fi