cleanup both logs if there
This commit is contained in:
parent
0dbbe73ae5
commit
314d52de63
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user