Skip to content

Commit

Permalink
fix defect: default AWS region is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhangs committed Feb 6, 2024
1 parent 9cbdd98 commit acea401
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ function update-config () {
done
fi

if [[ -z $region ]]; then
region=$(aws configure get default.region)
fi
echo "updating OPTIONS: KeyPairName ..."
xsh /util/sed-inplace "/KeyPairName=/ s|<REGION>|$region|" "$file"

Expand Down Expand Up @@ -203,6 +200,10 @@ function main () {
exit 255
fi

if [[ -z $region ]]; then
region=$(aws configure get default.region)
fi

# build stack list
# shellcheck disable=SC2128
if [[ $stacks == 00 ]]; then
Expand Down

0 comments on commit acea401

Please sign in to comment.