From 22d4d4d9843e56fdcb9b000820367e375f6f8bc7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 21 Apr 2023 18:53:25 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index c577c2f..14c0ecd 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -639,12 +639,17 @@ MMSTATUS(){ fi ### CHECK FOR PLEX MOUNT + msg=" |- ${idsCL[Default]}Verifying Plex Media Mount" + c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)) + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -en "${idsCL[White]}${msg}${spc}${idsCL[White]} : ${idsCL[Default]}" + files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*) if (( ! ${#files} )) && [ ! -f ${MMFOLDER}/mm.plexmount.fail2 ]; then echo -e "${idsCL[Red]}Not Mounted${idsCL[Default]}" elif [ -f ${MMFOLDER}/mm.plexmount.fail2 ]; then - echo -e "${idsCL[Red]}Not Mounted, but running services anyway as chosen previously${idsCL[Default]}" + echo -e "${idsCL[Red]}Not Mounted, running services as chosen previously${idsCL[Default]}" else echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"