From 36c18fd5c78d84519314039f44326166ececee7d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 11 Jun 2019 08:28:55 -0300 Subject: s/mail_debug_log/finish_phase/ --- scripts/ci/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/ci/deploy.sh') diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh index 6d6737d..d40ea89 100755 --- a/scripts/ci/deploy.sh +++ b/scripts/ci/deploy.sh @@ -5,7 +5,7 @@ set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" cd ../../ -mail_debug_log() { +finish_phase() { local -r exit_code="${?}" if [[ "${exit_code}" = 0 ]]; then @@ -36,7 +36,7 @@ mail_debug_log() { echo "Finished cleanup." } -trap mail_debug_log EXIT +trap finish_phase EXIT create_known_hosts_file() { echo "${TLD},$(terraform output public_floating_ip) ssh-rsa $(awk '{print $2}' < ./secrets/ssh/vps-box-server.pub)" > ./generated/generated-known-hosts.txt -- cgit v1.2.3