From 8a6a58783ec660cb92da08dc5c80265185b40219 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 9 May 2024 22:55:42 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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