From 99bf80a1130b37f983236e282a780ba28840ec4f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 23 Jan 2022 14:22:41 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 49 +++++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) 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