From 95daa5d837d1d532fcfa11ba8c04a50d5e82bf86 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:23:37 +0200 Subject: [PATCH] fix: properly specify curl output --- setup.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index a7c1361..7b59eaa 100755 --- a/setup.sh +++ b/setup.sh @@ -185,15 +185,17 @@ 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 - INQUIRER_PATH="/tmp/waInquirer.sh" - rm -f "$INQUIRER_PATH" + local INQUIRER=$INQUIRER_PATH - curl "https://raw.githubusercontent.com/winapps-org/winapps/main/install/inquirer.sh" -O "$INQUIRER_PATH" + if [ ! -d "$SYS_SOURCE_PATH" ] && [ ! -d "$USER_SOURCE_PATH" ]; then + INQUIRER="/tmp/waInquirer.sh" + rm -f "$INQUIRER" + + curl -o "$INQUIRER" "https://raw.githubusercontent.com/winapps-org/winapps/main/install/inquirer.sh" fi # shellcheck source=/dev/null # Exclude this file from being checked by ShellCheck. - source "$INQUIRER_PATH" + source "$INQUIRER" } # Name: 'waCheckInput'