From b186f6a856fcdd9f928fd3e406f08d62a303d84f Mon Sep 17 00:00:00 2001 From: Christos Alexiou Date: Thu, 8 Aug 2024 19:16:48 +0300 Subject: [PATCH] fix: drop temp variable --- hosting/single/runner.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hosting/single/runner.sh b/hosting/single/runner.sh index b89bf8ffd4..3ec31993dc 100644 --- a/hosting/single/runner.sh +++ b/hosting/single/runner.sh @@ -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