diff options
Diffstat (limited to 'scripts/ci/deploy.sh')
-rwxr-xr-x | scripts/ci/deploy.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |