Merge pull request #374 from stceum/setup_fixup

Fixup the bug that when the winapps-src is cloned but $INQUIRER is …
This commit is contained in:
Oskar Manhart 2025-01-03 11:17:41 +01:00 committed by GitHub
commit f4f4d30998
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,7 +188,11 @@ function waGetSourceCode() {
function waGetInquirer() {
local INQUIRER=$INQUIRER_PATH
if [ ! -d "$SYS_SOURCE_PATH" ] && [ ! -d "$USER_SOURCE_PATH" ]; then
if [ -d "$SYS_SOURCE_PATH" ]; then
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"