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]}"