cleanup both logs if there

This commit is contained in:
George Danchev 2011-07-04 16:07:04 +00:00
parent 0dbbe73ae5
commit 314d52de63

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}"