aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-10 17:43:08 -0300
committerEuAndreh <eu@euandre.org>2019-06-10 17:43:08 -0300
commite154a27e05ef9157ba34742e3d8caf101cfad716 (patch)
treeb30341464fadf236caa529a24344b7770814b75b /scripts
parentPut terraform output in email logs.txt (diff)
downloadserver-e154a27e05ef9157ba34742e3d8caf101cfad716.tar.gz
server-e154a27e05ef9157ba34742e3d8caf101cfad716.tar.xz
Add filename to logs.txt output
Taken from: https://stackoverflow.com/questions/5917413/concatenate-multiple-files-but-include-filename-as-section-headers
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/mail.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ci/mail.sh b/scripts/ci/mail.sh
index 61f4186..8236373 100755
--- a/scripts/ci/mail.sh
+++ b/scripts/ci/mail.sh
@@ -36,7 +36,7 @@ Logs are attached.
EOF
)
-cat ./logs/*.txt > "${ATTACHMENT_PATH}"
+tail -n +1 ./logs/*.txt > "${ATTACHMENT_PATH}"
gpg -r "${GPG_TO}" \
-e "${ATTACHMENT_PATH}"