We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 832b3b5 commit 0febfaeCopy full SHA for 0febfae
1 file changed
build-static.sh
@@ -147,6 +147,13 @@ else
147
spcCommand="./bin/spc"
148
fi
149
150
+# turn potentially relative EMBED path into absolute path
151
+if [ -n "${EMBED}" ]; then
152
+ if [[ "${EMBED}" != /* ]]; then
153
+ EMBED="${CURRENT_DIR}/${EMBED}"
154
+ fi
155
+fi
156
+
157
# Extensions to build
158
if [ -z "${PHP_EXTENSIONS}" ]; then
159
# enable EMBED mode, first check if project has dumped extensions
@@ -178,9 +185,6 @@ fi
178
185
179
186
# Embed PHP app, if any
180
187
if [ -n "${EMBED}" ] && [ -d "${EMBED}" ]; then
181
- if [[ "${EMBED}" != /* ]]; then
182
- EMBED="${CURRENT_DIR}/${EMBED}"
183
- fi
184
188
# shellcheck disable=SC2089
189
SPC_OPT_BUILD_ARGS="${SPC_OPT_BUILD_ARGS} --with-frankenphp-app='${EMBED}'"
190
0 commit comments