From deabce585ff7ac6f37a7cdae51319a87695efbe0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 23 Jan 2022 14:48:04 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 2fb2d3b..e95932c 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -78,12 +78,8 @@ MMSTOP(){ MMSTATUS(){ for srvc in "${SERVICES_CHECK[@]}"; do c=0; cw=22; spc='' - spc1=${cw} - ${#NM_SERVICES[${srvc}]} - echo $spc1 - + spc1=${cw}-${#NM_SERVICES[${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