2023-10-27 19:01:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
function error_handler() {
|
2024-06-13 17:34:32 +00:00
|
|
|
echo >&2 "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
|
2023-10-27 19:01:28 +00:00
|
|
|
exit "$2"
|
|
|
|
}
|
|
|
|
trap 'error_handler ${LINENO} $?' ERR
|
|
|
|
set -o errtrace -o errexit -o nounset -o pipefail
|
|
|
|
|
2023-12-05 16:41:59 +00:00
|
|
|
script="$1"
|
|
|
|
shift
|
2024-06-13 17:34:32 +00:00
|
|
|
script_dir="$(
|
|
|
|
cd -- "$(dirname "$0")" >/dev/null 2>&1
|
|
|
|
pwd -P
|
|
|
|
)"
|
2023-10-27 19:01:28 +00:00
|
|
|
. "${script_dir}/local_development_environment_setup"
|
|
|
|
|
|
|
|
export SPIFFWORKFLOW_BACKEND_RUN_BACKGROUND_SCHEDULER_IN_CREATE_APP=false
|
|
|
|
|
2024-06-13 17:34:32 +00:00
|
|
|
exec poet run python "$script" "$@"
|