From cae0c1d048255631c2995a2d997d9639445ba9e1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 9 Jan 2024 22:42:48 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 80cc5501..866ce49e 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -273,12 +273,13 @@ CHECKTEMPSENSOR(){ echo -en "${lclr}${lmd}${spct}${temp_f_disp}${GAUGESH}" [ "${average}" != "" ] && echo -en " /${spca}${averagedisp}${GAUGESH}" - tmp="${spct}${temp_f_disp}${GAUGESH}" - c=0; spc=''; spc1=`expr 12 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - [ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' ' - [ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' ' - echo -e "${idsCL[Default]}${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]" - + if [[ "${1}" != *"FAN"* ]] + tmp="${spct}${temp_f_disp}${GAUGESH}" + c=0; spc=''; spc1=`expr 12 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done + [ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' ' + [ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' ' + echo -e "${idsCL[Default]}${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]" + fi else echo -e "${idsCL[Yellow]}Sensor Offline${idsCL[Default]}" fi