This commit is contained in:
2023-02-26 21:55:21 -06:00
parent 49926d4cad
commit 73ce13e6a1
2 changed files with 6 additions and 4 deletions

2
run.sh
View File

@@ -62,7 +62,7 @@ if [ "${1}" == "update" ]; then
else
[ "${1}" == "clear" ] && rm -f ${MMFOLDER}/mm.*
if [ -f ${MMFOLDER}/mm.checking ]; then
if [ -f ${MMFOLDER}/mm.checking ] && [ "${1}" != "status" ]; then
fd=$(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.checking))
if [ ${fd} -gt 900 ]; then
rm -f ${MMFOLDER}/mm.checking