From 83e9a08b900779121233d3df7a81fa9061a4a841 Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 9 Jan 2023 14:23:40 -0500 Subject: [PATCH] fix setting the bpmn dir in start scripts w/ burnettk --- spiffworkflow-backend/bin/find_sample_process_models | 8 ++++---- spiffworkflow-backend/bin/run_server_locally | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spiffworkflow-backend/bin/find_sample_process_models b/spiffworkflow-backend/bin/find_sample_process_models index f5b6d1cf8..525996399 100755 --- a/spiffworkflow-backend/bin/find_sample_process_models +++ b/spiffworkflow-backend/bin/find_sample_process_models @@ -18,13 +18,13 @@ if [[ -z "${BPMN_SPEC_ABSOLUTE_DIR:-}" ]]; then exit 1 fi fi - export BPMN_SPEC_ABSOLUTE_DIR - pushd "$BPMN_SPEC_ABSOLUTE_DIR" + + pushd "$BPMN_SPEC_ABSOLUTE_DIR" >/dev/null 2>&1 if [[ "$(git rev-parse --abbrev-ref HEAD)" == "main" ]]; then >&2 echo "ERROR: please do not use the main branch of sample-process-models. use dev" exit 1 fi - popd + popd >/dev/null 2>&1 fi -echo "$BPMN_SPEC_ABSOLUTE_DIR" +realpath "$BPMN_SPEC_ABSOLUTE_DIR" diff --git a/spiffworkflow-backend/bin/run_server_locally b/spiffworkflow-backend/bin/run_server_locally index e0bc15826..17691b9e4 100755 --- a/spiffworkflow-backend/bin/run_server_locally +++ b/spiffworkflow-backend/bin/run_server_locally @@ -19,7 +19,6 @@ fi BPMN_SPEC_ABSOLUTE_DIR=$(./bin/find_sample_process_models) export BPMN_SPEC_ABSOLUTE_DIR -echo "$BPMN_SPEC_ABSOLUTE_DIR" export FLASK_SESSION_SECRET_KEY=super_secret_key export APPLICATION_ROOT="/"