Skip to content

Commit 787192b

Browse files
committed
Fix sc21 variable export
1 parent 18259df commit 787192b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/wrf/scripts/setup/sc21_create_parallelcluster_config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if [[ -z ${SSH_KEY_EXIST} ]]; then
4747
--output text > ~/.ssh/${SSH_KEY_NAME}
4848

4949
chmod 400 ~/.ssh/${SSH_KEY_NAME}
50-
echo "${SSH_KEY_NAME}" >> env_vars
50+
echo "export SSH_KEY_NAME=${SSH_KEY_NAME}" >> env_vars
5151
else
5252
echo "[WARNING] SSH_KEY_NAME ${SSH_KEY_NAME} already exist"
5353
fi
@@ -66,7 +66,7 @@ if [[ -z ${VPC_ID} ]]; then
6666
fi
6767

6868
if [[ ! -z $VPC_ID ]]; then
69-
echo "${VPC_ID}" >> env_vars
69+
echo "export VPC_ID=${VPC_ID}" >> env_vars
7070
echo "[INFO] VPC_ID = ${VPC_ID}"
7171
else
7272
echo "[ERROR] failed to retrieve VPC ID"
@@ -104,7 +104,7 @@ SUBNET_ID=`aws ec2 describe-subnets --query "Subnets[*].SubnetId" \
104104
| jq -r .[$(python3 -S -c "import random; print(random.randrange(${AZ_COUNT}))")]`
105105

106106
if [[ ! -z $SUBNET_ID ]]; then
107-
echo "${SUBNET_ID}" >> env_vars
107+
echo "export SUBNET_ID=${SUBNET_ID}" >> env_vars
108108
echo "[INFO] SUBNET_ID = ${SUBNET_ID}"
109109
else
110110
echo "[ERROR] failed to retrieve SUBNET ID"

0 commit comments

Comments
 (0)