mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-06 07:07:18 +02:00
fix: bad logic & remove inquirer if exists
This commit is contained in:
parent
4e0d582101
commit
81b8b13b33
4
setup.sh
4
setup.sh
@ -185,8 +185,10 @@ function waGetSourceCode() {
|
|||||||
# Name: 'waGetInquirer'
|
# Name: 'waGetInquirer'
|
||||||
# Role: Loads the inquirer script, even if the source isn't cloned yet
|
# Role: Loads the inquirer script, even if the source isn't cloned yet
|
||||||
function waGetInquirer() {
|
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"
|
INQUIRER_PATH="/tmp/waInquirer.sh"
|
||||||
|
rm -f "$INQUIRER_PATH"
|
||||||
|
|
||||||
curl "https://raw.githubusercontent.com/winapps-org/winapps/main/install/inquirer.sh" -O "$INQUIRER_PATH"
|
curl "https://raw.githubusercontent.com/winapps-org/winapps/main/install/inquirer.sh" -O "$INQUIRER_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user