Update status.inc

This commit is contained in:
2023-11-25 21:33:32 -06:00
parent 8a0b56fb8c
commit afd734aba8

View File

@@ -154,7 +154,7 @@ STATUS(){
DIVIDER . lightYellow 52; echo -e "${idsST[Reset]}"
fi
for nip in "${!var}"; do
[ "${ST_ACTION}" != "check" ] && echo -en " ${idsST[Bold]}${idsCL[LightGreen]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}${idsCL[LightCyan]} - Verifying Host...${idsST[Reset]}"
[ "${ST_ACTION}" != "check" ] && echo -en " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}${idsCL[DarkGray]} - Verifying Host...${idsST[Reset]}"
if [[ "${RUN_NODE_IP}" == *"${nip}"* ]]; then
NCMD=''; LH='- localhost'
@@ -186,7 +186,7 @@ STATUS(){
uptime=$(${NCMD} uptime -p)
fi
[ "${ST_ACTION}" != "check" ] && echo -en "\033[K\r ${idsST[Bold]}${idsCL[LightGreen]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}"
[ "${ST_ACTION}" != "check" ] && echo -en "\033[K\r ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}"
echo -e "${idsCL[White]} - ${uptime} ${idsCL[LightYellow]}${LH}${idsCL[Default]}"
else
echo -e "${idsCL[Default]}"