From 4d0a1abaf0298da8b3509f032c889c7090b9abaf Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 6 Jan 2023 11:08:30 -0500 Subject: [PATCH] ensure we are not accidentally using main --- spiffworkflow-backend/bin/run_server_locally | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spiffworkflow-backend/bin/run_server_locally b/spiffworkflow-backend/bin/run_server_locally index 89801b45..c1e960a5 100755 --- a/spiffworkflow-backend/bin/run_server_locally +++ b/spiffworkflow-backend/bin/run_server_locally @@ -29,6 +29,12 @@ if [[ -z "${BPMN_SPEC_ABSOLUTE_DIR:-}" ]]; then fi fi export BPMN_SPEC_ABSOLUTE_DIR + pushd "$BPMN_SPEC_ABSOLUTE_DIR" + 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 fi export FLASK_SESSION_SECRET_KEY=super_secret_key