diff options
author | EuAndreh <eu@euandre.org> | 2019-06-10 17:43:08 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-10 17:43:08 -0300 |
commit | e154a27e05ef9157ba34742e3d8caf101cfad716 (patch) | |
tree | b30341464fadf236caa529a24344b7770814b75b /scripts/ci/mail.sh | |
parent | Put terraform output in email logs.txt (diff) | |
download | toph-e154a27e05ef9157ba34742e3d8caf101cfad716.tar.gz toph-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/ci/mail.sh')
-rwxr-xr-x | scripts/ci/mail.sh | 2 |
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}" |