cleanup both logs if there

This commit is contained in:
George Danchev 2011-07-04 16:07:04 +00:00
parent 9c90c20734
commit c808501c19

View File

@ -63,7 +63,8 @@ fi
printf "\n${SELF}: Stopped at ${DEND}.\n" printf "\n${SELF}: Stopped at ${DEND}.\n"
if [ "${1}" == "-cleanup" ]; then 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 else
E2=`date '+%s'` E2=`date '+%s'`
let ES="${E2} - ${E1}" let ES="${E2} - ${E1}"