fix: escape WORKSPACE_ARG references to avoid Terraform template parsing
Use 14899 to escape shell variables so they're not treated as Terraform template variables by the templatefile() function.
This commit is contained in:
parent
56dbdd9a5e
commit
fef2c41480
@ -25,15 +25,15 @@ fi
|
|||||||
run_vscode_web() {
|
run_vscode_web() {
|
||||||
# Determine what to pass as the workspace argument
|
# Determine what to pass as the workspace argument
|
||||||
WORKSPACE_ARG=""
|
WORKSPACE_ARG=""
|
||||||
if [ -n "${WORKSPACE}" ]; then
|
if [ -n "$${WORKSPACE}" ]; then
|
||||||
WORKSPACE_ARG="${WORKSPACE}"
|
WORKSPACE_ARG="$${WORKSPACE}"
|
||||||
elif [ -n "${FOLDER}" ]; then
|
elif [ -n "$${FOLDER}" ]; then
|
||||||
WORKSPACE_ARG="${FOLDER}"
|
WORKSPACE_ARG="$${FOLDER}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "👷 Running $VSCODE_WEB serve-local with workspace: ${WORKSPACE_ARG}"
|
echo "👷 Running $VSCODE_WEB serve-local with workspace: $${WORKSPACE_ARG}"
|
||||||
echo "Check logs at ${LOG_PATH}!"
|
echo "Check logs at $${LOG_PATH}!"
|
||||||
"$VSCODE_WEB" serve-local "$EXTENSION_ARG" "$SERVER_BASE_PATH_ARG" "$DISABLE_TRUST_ARG" --port "${PORT}" --host 127.0.0.1 --accept-server-license-terms --without-connection-token --telemetry-level "${TELEMETRY_LEVEL}" "${WORKSPACE_ARG}" > "${LOG_PATH}" 2>&1 &
|
"$VSCODE_WEB" serve-local "$EXTENSION_ARG" "$SERVER_BASE_PATH_ARG" "$DISABLE_TRUST_ARG" --port "$${PORT}" --host 127.0.0.1 --accept-server-license-terms --without-connection-token --telemetry-level "$${TELEMETRY_LEVEL}" "$${WORKSPACE_ARG}" > "$${LOG_PATH}" 2>&1 &
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if the settings file exists...
|
# Check if the settings file exists...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user