fix: drop temp variable

This commit is contained in:
Christos Alexiou 2024-08-08 19:16:48 +03:00
parent f3f6f8d9b0
commit b186f6a856
1 changed files with 1 additions and 2 deletions

View File

@ -45,8 +45,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