From ccbbb156516cda7c75a579fc12cb2efc436dcdd5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 30 Jan 2024 21:53:03 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 91a4a296..ae9cf41f 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -135,7 +135,14 @@ CHECKTEMP(){ echo -e "${MSG}${spc}: ${idsCL[White]}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR} "+%m/%d @ %l:%M%p")${idsCL[Default]}" MSG=" Last set" c=0; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - echo -e "${MSG}${spc}: ${FSC}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set "+%m/%d @ %l:%M%p")${idsST[Reset]}${idsCL[Default]}" + if [ -f ${PW_TMPFOLDER}/.lastfancheck/${cSENSOR}.gl ]; then + FSC="${idsCL[LightGreen]}" + elif [ -f ${PW_TMPFOLDER}/.lastfancheck/${cSENSOR}.set ]; then + FSC="${idsCL[Green]}" + else + FSC="${idsCL[LightYellow]}" + fi + echo -e "${MSG}${spc}: ${FSC}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set "+%m/%d @ %l:%M%p")${idsCL[Default]}" fi fi ((t++))