mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-04 22:27:19 +02:00
Fixup the bug that when the winapps-src is cloned but $INQUIRER is not updated with cloned path causing the failure of running the script.
This commit is contained in:
parent
c554632fe1
commit
7a59b3b9b7
8
setup.sh
8
setup.sh
@ -188,8 +188,12 @@ function waGetSourceCode() {
|
|||||||
function waGetInquirer() {
|
function waGetInquirer() {
|
||||||
local INQUIRER=$INQUIRER_PATH
|
local INQUIRER=$INQUIRER_PATH
|
||||||
|
|
||||||
if [ ! -d "$SYS_SOURCE_PATH" ] && [ ! -d "$USER_SOURCE_PATH" ]; then
|
if [ -d "$SYS_SOURCE_PATH" ]; then
|
||||||
INQUIRER="/tmp/waInquirer.sh"
|
INQUIRER=$SYS_SOURCE_PATH/$INQUIRER_PATH
|
||||||
|
elif [ -d "$USER_SOURCE_PATH" ] ; then
|
||||||
|
INQUIRER=$USER_SOURCE_PATH/$INQUIRER_PATH
|
||||||
|
else
|
||||||
|
INQUIRER="/tmp/waInquirer.sh"
|
||||||
rm -f "$INQUIRER"
|
rm -f "$INQUIRER"
|
||||||
|
|
||||||
curl -o "$INQUIRER" "https://raw.githubusercontent.com/winapps-org/winapps/main/install/inquirer.sh"
|
curl -o "$INQUIRER" "https://raw.githubusercontent.com/winapps-org/winapps/main/install/inquirer.sh"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user