Merge pull request #203 from samply/fix/environment

export ENVIRONMENT
This commit is contained in:
Tobias Kussel 2024-08-19 08:33:05 +02:00 committed by GitHub
commit 376cd03bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -74,13 +74,18 @@ loadVars() {
case "$ENVIRONMENT" in case "$ENVIRONMENT" in
"production") "production")
export FOCUS_TAG=main export FOCUS_TAG=main
export ENVIRONMENT="production"
;; ;;
"test") "test")
export FOCUS_TAG=develop export FOCUS_TAG=develop
export ENVIRONMENT="test"
;; ;;
*) *)
report_error 7 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!" report_error 7 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
export FOCUS_TAG=main export FOCUS_TAG=main
export ENVIRONMENT="production"
;; ;;
esac esac
} }