aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/diff_check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh/diff_check.sh')
-rwxr-xr-xcron-sh/diff_check.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh
index f93c754..21fd883 100755
--- a/cron-sh/diff_check.sh
+++ b/cron-sh/diff_check.sh
@@ -177,9 +177,14 @@ if [[ -s ${TMP} ]]; then
echo -e "\n\n*** Diff Check, ${date} ***\n" >> ${SECURITY_LOG}
cat ${TMP} >> ${SECURITY_LOG}
- Maillog "*** Diff Check on ${hostname}, ${date} ***" "${TMP}"
+else
+ cat > ${TMP} <<EOF
+Nothing has changed since the last run.
+EOF
fi
+Maillog "*** Diff Check on ${hostname}, ${date} ***" "${TMP}"
+
if [[ -f ${TMP} ]]; then
rm -f ${TMP}
fi