cleanup both logs if there

This commit is contained in:
George Danchev 2011-07-04 16:07:04 +00:00
parent 9c90c20734
commit c808501c19
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ fi
printf "\n${SELF}: Stopped at ${DEND}.\n"
if [ "${1}" == "-cleanup" ]; then
rm -f "${CLOG}"
if [ -f "${CLOG}" ]; then rm -f "${CLOG}"; fi
if [ -f "${CLOG}".prev ]; then rm -f "${CLOG}".prev; fi
else
E2=`date '+%s'`
let ES="${E2} - ${E1}"