diff options
Diffstat (limited to 'cron-sh/diff_check.sh')
-rwxr-xr-x | cron-sh/diff_check.sh | 5 |
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 |