From ad68d64e33b18f3a1093635e5386a3ef83a4244e Mon Sep 17 00:00:00 2001 From: alarig Date: Tue, 22 May 2018 00:54:59 +0200 Subject: [PATCH] Add date --- check_updates.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_updates.sh b/check_updates.sh index f4be821..1d4b9df 100755 --- a/check_updates.sh +++ b/check_updates.sh @@ -18,6 +18,8 @@ if [ "$(grep '\[ebuild U' ${TMP_FILE})" != '' ]; then echo "Subject: $(hostname -f):$(grep Total: ${TMP_FILE} \ | cut -d ':' -f 2 | cut -d ')' -f 1))" >> ${MAIL} echo "Content-Type: text/plain; charset=UTF-8" >> ${MAIL} + echo "Date: $(date --rfc-email)" >> ${MAIL} + printf "\n" >> ${MAIL} cat ${TMP_FILE} >> ${MAIL} if [ "$(lsof -n | awk '{ if ($5 == "DEL") print $9 }' | sort -u)" ]; then