diff --git a/mm-scripts.sh b/mm-scripts.sh index 6282c5b..589bc5d 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -448,8 +448,10 @@ MMSTATUS(){ else echo -e "${idsCL[Red]}Not correct${idsCL[Default]}" echo - echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}" - MMSTOP + if [ ! -f ${MMFOLDER}/mm.checking ]; then + echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}" + MMSTOP + fi fi fi @@ -462,7 +464,7 @@ MMSTATUS(){ echo -e "${idsCL[Green]}Good${idsCL[Default]}" else echo -e "${idsCL[Red]}Not Good${idsCL[Default]}" - if [ ! -f ${MMFOLDER}/mm.stop ]; then + if [ ! -f ${MMFOLDER}/mm.stop ] && [ ! -f ${MMFOLDER}/mm.checking ]; then echo echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}" MMSTOP diff --git a/run.sh b/run.sh index f9e2545..48142de 100755 --- a/run.sh +++ b/run.sh @@ -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