We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65090b4 commit 60865bdCopy full SHA for 60865bd
grades-docker/grades.sh
@@ -8,5 +8,8 @@ fi
8
/usr/bin/diff grades.txt /tmp/grades.txt > /tmp/diff.txt
9
if [ -s /tmp/diff.txt ]; then
10
(echo -e "From: Grades <${USERNAME}>\nSubject: Grades changed\n\n"; cat /tmp/diff.txt; echo -e '\n\nAll grades:\n'; cat /tmp/grades.txt) | /usr/sbin/sendmail $NOTIFY_RECIPIENT
11
+ echo "$(date +"%b %d %H:%M:%S") $HOSTNAME grades.sh[$$]: Sent mail to ${NOTIFY_RECIPIENT}."
12
+else
13
+ echo "$(date +"%b %d %H:%M:%S") $HOSTNAME grades.sh[$$]: No changes detected."
14
fi
15
mv /tmp/grades.txt grades.tx
0 commit comments