diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 2fa01694..d4fe8d95 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -300,8 +300,12 @@ CHECKTEMP(){ fi echo -en "${idsCL[Default]} " [ ${#M} -eq 2 ] && echo -n " " - c=0; spc=''; spc1=`expr 7 - ${#OLD_temp_h}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; ((c++)); done - echo -e "${lclr}~${M}m ago - ${lclr}${lico}${spc}${OLD_temp_h}%" + if [ "${OLD_temp_h}" != "" ]; then + c=0; spc=''; spc1=`expr 7 - ${#OLD_temp_h}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; ((c++)); done + echo -e "${lclr}~${M}m ago - ${lclr}${lico}${spc}${OLD_temp_h}%" + else + echo -e "${lclr}~${M}m ago - ${lclr}${lico}" + fi done fi