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.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh
index c69de85..bef14be 100755
--- a/cron-sh/diff_check.sh
+++ b/cron-sh/diff_check.sh
@@ -232,5 +232,8 @@ if [ -s ${TMP} ]; then
date=`date`
echo -n "\n\n*** ${date} ***\n" >> ${SECURITY_LOG}
cat ${TMP} >> ${SECURITY_LOG}
- rm -f ${TMP}
+fi
+
+if [ -f ${TMP} ]; then
+ rm -f ${TMP}
fi