diff --git a/mm-scripts.sh b/mm-scripts.sh index 21c9bb7..8927888 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -71,33 +71,30 @@ MMSTOP(){ } -if [ ${action-x} ]; then - case $action in - start | check) - if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then - echo -e "${idsCL[Yellow]}The system is currently stopped${idsCL[Default]}" - exit 0 - fi - touch /opt/mm.stop - MMSTART;; - - stop) - touch /opt/mm.stop - MMSTOP;; - - update);; - - *) - echo -e "Usage: ${idsCL[LightCyan]}mm${idsCL[Default]} {" - echo -e " ${idsCL[Yellow]}start${idsCL[Default]}" - echo -e " ${idsCL[Yellow]}stop${idsCL[Default]}" - echo -e "}" - echo "" - echo "" - exit 0;; - esac -fi +case $action in + start | check) + if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then + echo -e "${idsCL[Yellow]}The system is currently stopped${idsCL[Default]}" + exit 0 + fi + touch /opt/mm.stop + MMSTART;; + + stop) + touch /opt/mm.stop + MMSTOP;; + + update);; + *) + echo -e "Usage: ${idsCL[LightCyan]}mm${idsCL[Default]} {" + echo -e " ${idsCL[Yellow]}start${idsCL[Default]}" + echo -e " ${idsCL[Yellow]}stop${idsCL[Default]}" + echo -e "}" + echo "" + echo "" + exit 0;; +esac exit 0 \ No newline at end of file