Skip to content

Commit

Permalink
fix(terrashell.sh): clean up Terraform ZIP artifact after extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Jun 20, 2024
1 parent 7fafe2b commit 75cdde7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terrashell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ poetry install

echo
echo "> Downloading Terraform v$TERRAFORM_VERSION..."
curl -o terraform.zip \
curl -o "$WORKDIR"/terraform.zip \
"https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_$(dpkg-architecture -q DEB_HOST_ARCH).zip"
unzip terraform.zip terraform -d "$WORKDIR"
unzip "$WORKDIR"/terraform.zip terraform -d "$WORKDIR"
rm "$WORKDIR"/terraform.zip
chmod +x "$WORKDIR"/terraform

echo
Expand Down

0 comments on commit 75cdde7

Please sign in to comment.