Merge pull request #14347 from Budibase/ops/fix-bug-in-randomisation
Fix: Handle setting of env vars in .env gracefully
This commit is contained in:
commit
2d6d9746f2
|
@ -44,8 +44,7 @@ fi
|
|||
# randomise any unset environment variables
|
||||
for ENV_VAR in "${ENV_VARS[@]}"
|
||||
do
|
||||
temp=$(eval "echo \$$ENV_VAR")
|
||||
if [[ -z "${temp}" ]]; then
|
||||
if [[ -z "${!ENV_VAR}" ]]; then
|
||||
eval "export $ENV_VAR=$(uuidgen | sed -e 's/-//g')"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue