mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-27 00:40:37 +00:00
do not fail if SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG is missing
This commit is contained in:
parent
565ee71a17
commit
9b155ce4a8
@ -8,7 +8,7 @@ trap 'error_handler ${LINENO} $?' ERR
|
|||||||
set -o errtrace -o errexit -o nounset -o pipefail
|
set -o errtrace -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
# sort of like https://lithic.tech/blog/2020-05/react-dynamic-config, but without golang
|
# sort of like https://lithic.tech/blog/2020-05/react-dynamic-config, but without golang
|
||||||
react_configs=$(env | grep -E "^SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG_")
|
react_configs=$(env | grep -E "^SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG_" || echo '')
|
||||||
if [[ -n "$react_configs" ]]; then
|
if [[ -n "$react_configs" ]]; then
|
||||||
index_html_file="./build/index.html"
|
index_html_file="./build/index.html"
|
||||||
if [[ ! -f "$index_html_file" ]]; then
|
if [[ ! -f "$index_html_file" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user