From d503449cbbb222ba2433b973bd09dfaae51760ba Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 22 Dec 2023 22:52:38 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index ad97b40d..702587f1 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -682,10 +682,19 @@ SERVERROOM_TEMP_DIFFERENCE(){ echo -e "${idsCL[LightCyan]}Current Temp Deviation : ${idsCL[LightRed]}${PW_ServerRoomTH_Dev}'F${idsCL[Default]}" if [ ${scansfound} -le 500 ]; then - echo -en "\n${idsCL[LightCyan]}List out these '${scansfound}' scan times? (y/N): ${idsCL[Default]}" - read -n1 choice - if [ "${choice^^}" == "Y" ]; then - echo -en "\r\033[K" + if [ ${scansfound} -gt 15 ]; then + echo -en "\n${idsCL[LightCyan]}List out these '${scansfound}' scan times? (y/N): ${idsCL[Default]}" + read -n1 choice + if [ "${choice^^}" == "Y" ]; then + echo -en "\r\033[K" + gofor=1 + else + gofor=0 + fi + else + gofor=1 + fi + if [ ${gofor} -eq 1 ]; then lastscansnum=${scansfound} last_tempdiffs=$(tail -n ${lastscansnum} ${PW_TMPFOLDER}/.log.sr.difference) IFS=$'\n'