aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-19 21:05:33 +0100
committerAlex Schofield <git@ajschof.me>2024-08-19 21:05:33 +0100
commitb75b7197f08e933cfcd4b69ad5182a01c2886d8e (patch)
tree35d5dde59d2592a5ff4ceed9a804558f7667cf8f /scripts
parentd0e7b1304efe4ab6de2dc5bef1691b389a5bc449 (diff)
downloadde-project-bentley-b75b7197f08e933cfcd4b69ad5182a01c2886d8e.tar.gz
de-project-bentley-b75b7197f08e933cfcd4b69ad5182a01c2886d8e.zip
refactor: change directory at start of the script to terraform folder
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deploy.sh4
1 files changed, 3 insertions, 1 deletions
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
git.ajschof.me — hosted by ajschofield — powered by cgit