Merge pull request #204 from samply/fix/environment

Don't repeat definition of ENVIRONMENT var
This commit is contained in:
Torben Brenner 2024-08-19 09:15:52 +02:00 committed by GitHub
commit 0f1f88f538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -70,22 +70,18 @@ loadVars() {
# Set some project-independent default values # Set some project-independent default values
: ${ENVIRONMENT:=production} : ${ENVIRONMENT:=production}
export ENVIRONMENT
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
} }