diff --git a/mm-scripts.sh b/mm-scripts.sh index ac0581d..49e6729 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -488,11 +488,10 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then fi case $action in start | check) - echo 'yes' - - if [ -f ${MMFOLDER}/mm.stop* ] && [ "${action}" = "check" ]; then + if [ -f ${MMFOLDER}/mm.stop* ] && [ "${action}" == "check" ]; then if [ -f ${MMFOLDER}/mm.stop.checking ]; then echo 'yes' + echo ${MMFOLDER} checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)` if [ $checkstopped -gt 900 ]; then