From a7a04cf17d6caa3c0c862b2188482614b14a7bdf Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 12 May 2024 17:31:50 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 63dc6281..67a95b2a 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -258,10 +258,11 @@ CHECKTEMP(){ ([ "${temp_h}" != "" ] && [ "${temp_h}" != "0" ]) && echo -en "${idsCL[White]}| " || echo -n " " echo -en "${idsCL[Default]} " # [ ${#M} -eq 2 ] && echo -n " " - if [ ${#M} -lt 3 ]; then - echo -n "${#M} " + if [ ${#M} -eq 1 ]; then + echo -n " " + elif [ ${#M} -lt 3 ]; then c=0; spc1=`expr ${#M} - 1` - until [ ${c} = ${spc1} ] || [ ${#M} -eq 1 ]; do + until [ ${c} = ${spc1} ]; do echo -n " " ((c++)) done