From 831c98530edc4f1a2abc04e79e1e90b37c4a6e66 Mon Sep 17 00:00:00 2001 From: Matjaz Verbole Date: Fri, 4 Oct 2024 13:49:14 +0200 Subject: [PATCH] Apply review comments --- scripts/lisk/docker/dev/setEnvVariables.sh | 10 ++++++---- scripts/lisk/docker/setEnvVariables.sh | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/lisk/docker/dev/setEnvVariables.sh b/scripts/lisk/docker/dev/setEnvVariables.sh index d5ebe684f..ffac482ae 100644 --- a/scripts/lisk/docker/dev/setEnvVariables.sh +++ b/scripts/lisk/docker/dev/setEnvVariables.sh @@ -4,9 +4,11 @@ set -eu echo "Setting environment variables within the current shell on the host" # Retreive env vars from S3 bucket and source them -file_name=across-relayer-dev.env -aws s3 cp s3://lisk-envs/$file_name .${file_name} -source .${file_name} -rm -f .${file_name} +source_env_file_name=across-relayer-dev.env +env_file_name=.${source_env_file_name} + +aws s3 cp s3://lisk-envs/$source_env_file_name ${env_file_name} +source ${env_file_name} +rm -f ${env_file_name} echo "Finished setting all the environment variables within the current shell on the host" diff --git a/scripts/lisk/docker/setEnvVariables.sh b/scripts/lisk/docker/setEnvVariables.sh index a2fd83cf2..2629e9992 100644 --- a/scripts/lisk/docker/setEnvVariables.sh +++ b/scripts/lisk/docker/setEnvVariables.sh @@ -4,9 +4,11 @@ set -eu echo "Setting environment variables within the current shell on the host" # Retreive env vars from S3 bucket and source them -file_name=across-relayer-mainnet.env -aws s3 cp s3://lisk-envs/$file_name .${file_name} -source .${file_name} -rm -f .${file_name} +source_env_file_name=across-relayer-mainnet.env +env_file_name=.${source_env_file_name} + +aws s3 cp s3://lisk-envs/$source_env_file_name ${env_file_name} +source ${env_file_name} +rm -f ${env_file_name} echo "Finished setting all the environment variables within the current shell on the host"