diff options
author | EuAndreh <eu@euandre.org> | 2019-06-10 18:54:40 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-10 18:54:40 -0300 |
commit | 053f8c46360c8f588817da1592cbf19135fdd0cf (patch) | |
tree | 6f50d06ceefe1aa91030bbec153492c14329e47f /scripts | |
parent | Ignore /logs.txt (diff) | |
download | server-053f8c46360c8f588817da1592cbf19135fdd0cf.tar.gz server-053f8c46360c8f588817da1592cbf19135fdd0cf.tar.xz |
Only send log email when running on CI
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/mail.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/ci/mail.sh b/scripts/ci/mail.sh index 2796606..7058233 100755 --- a/scripts/ci/mail.sh +++ b/scripts/ci/mail.sh @@ -37,6 +37,13 @@ EOF ) tail -n +1 ./logs/*.txt > "${ATTACHMENT_PATH}" + +[[ "${USER}" = "build" ]] || { + echo "Not running on CI." + echo "Early exit on sending email logs." + exit +} + gpg --always-trust \ -r "${GPG_TO}" \ -e "${ATTACHMENT_PATH}" |