From b75b7197f08e933cfcd4b69ad5182a01c2886d8e Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Mon, 19 Aug 2024 21:05:33 +0100 Subject: refactor: change directory at start of the script to terraform folder --- scripts/deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/deploy.sh b/scripts/deploy.sh index e56088e..f631bbc 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -6,6 +6,9 @@ # Exit if any command has a non-zero status set -e +# Change current directory to terraform folder at the start +cd ../terraform/ + echo "WARNING: This script will destroy any infrastructure for testing." echo "It should not be used once a proper deployment has been setup." echo "Would you like to continue?" @@ -13,7 +16,6 @@ echo "Would you like to continue?" select yn in "Yes" "No"; do case $yn in Yes) - cd ../terraform/ echo "Would you like to destroy the current infrastructure?" select destroy_1 in "Yes" "No"; do case $destroy_1 in -- cgit v1.2.3