From 0415eada556b32ba858d2ba1b053d7bfc3d7b999 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 23 Jan 2022 14:43:51 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 6622c0f..5025b7d 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -77,10 +77,13 @@ MMSTOP(){ MMSTATUS(){ for srvc in "${SERVICES_CHECK[@]}"; do - echo $srvc c=0; cw=22; spc='' spc1=${cw}-${#NM_SERVICES[${srvc}]} + echo $srvc + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo $srvc + echo -en " ${NM_SERVICES[${srvc}]}$spc: " if [ "$(systemctl is-active ${srvc})" != "active" ]; then