We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbb7dc4 + c7913ae commit e382064Copy full SHA for e382064
lib/env.sh
@@ -24,6 +24,7 @@ function env_check(){
24
# loads environment vars from a stream (such as a file)
25
# example: env_load_stream < .env
26
function env_load_stream(){
27
+ [[ -n $DATA_DIR ]] && printf "DATA_DIR is already set to '$DATA_DIR' - this may cause the DATA_DIR specified in the .env to be ignored\n"
28
while IFS='=' read -r key value; do
29
([ -z $key ] || [ -z $value ]) && printf 'Invalid environment var "%s=%s"\n' $key $value && exit 1
30
if [ -z ${!key} ]; then
0 commit comments