aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-07 00:43:28 -0300
committerEuAndreh <eu@euandre.org>2019-06-07 00:43:28 -0300
commita0e136c04e0f06036b3a1f226b5c126da7be7018 (patch)
treed7019672ea6969122302d69a0edc2384cd7f3dd5
parentDisable SC2034 for ${DOLLAR} interpolated variable (diff)
downloadserver-a0e136c04e0f06036b3a1f226b5c126da7be7018.tar.gz
server-a0e136c04e0f06036b3a1f226b5c126da7be7018.tar.xz
Fix boolean logic bug on ${DESTROY_VOLUME} usage
-rwxr-xr-xscripts/ci/provision.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ci/provision.sh b/scripts/ci/provision.sh
index e2a0c72..633acb4 100755
--- a/scripts/ci/provision.sh
+++ b/scripts/ci/provision.sh
@@ -33,10 +33,10 @@ terraform init
echo "Done."
if [[ "${DESTROY_VOLUME:-}" != "" ]]; then
- echo "Skipping explicit intentional destruction of existing infrastructure..."
-else
echo "Destroying existing infrastructure..."
terraform destroy -input=false -auto-approve
+else
+ echo "Skipping explicit intentional destruction of existing infrastructure..."
fi
echo "Done."