aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/deploy.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh
index 244f869..6627e74 100755
--- a/scripts/ci/deploy.sh
+++ b/scripts/ci/deploy.sh
@@ -6,9 +6,17 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../../
mail_debug_log() {
- local -r ec="${?}"
+ local -r exit_code="${?}"
+
+ if [[ "${exit_code}" = 0 ]]; then
+ echo "Finished successfully."
+ else
+ echo "TRAPPED ERROR!"
+ fi
+ echo "Running final steps..."
+
echo "Sending logs via email..."
- ./scripts/ci/mail.sh "${ec}"
+ ./scripts/ci/mail.sh "${exit_code}"
echo "Done."
echo "Storing file changes to '.tfstate' files..."