diff options
Diffstat (limited to 'scripts/ci/mail.sh')
-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}" |