File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 178178
179179# Embed PHP app, if any
180180if [ -n " ${EMBED} " ] && [ -d " ${EMBED} " ]; then
181- SPC_OPT_BUILD_ARGS=" ${SPC_OPT_BUILD_ARGS} --with-frankenphp-app=${EMBED} "
181+ if [[ " ${EMBED} " != /* ]]; then
182+ EMBED=" ${CURRENT_DIR} /${EMBED} "
183+ fi
184+ # shellcheck disable=SC2089
185+ SPC_OPT_BUILD_ARGS=" ${SPC_OPT_BUILD_ARGS} --with-frankenphp-app='${EMBED} '"
182186fi
183187
184188SPC_OPT_INSTALL_ARGS=" go-xcaddy"
204208# shellcheck disable=SC2086
205209${spcCommand} download --with-php=" ${PHP_VERSION} " --for-extensions=" ${PHP_EXTENSIONS} " --for-libs=" ${PHP_EXTENSION_LIBS} " ${SPC_OPT_DOWNLOAD_ARGS}
206210export FRANKENPHP_SOURCE_PATH=" ${CURRENT_DIR} "
207- # shellcheck disable=SC2086
211+ # shellcheck disable=SC2086,SC2090
208212${spcCommand} build --enable-zts --build-embed --build-frankenphp ${SPC_OPT_BUILD_ARGS} " ${PHP_EXTENSIONS} " --with-libs=" ${PHP_EXTENSION_LIBS} "
209213
210214if [ -n " $CI " ]; then
You can’t perform that action at this time.
0 commit comments