From 4b292d918abd7279a5ba56a43a5f53ee8dcf0c8d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 27 Dec 2023 12:06:52 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 3864895d..34d6f450 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -910,10 +910,20 @@ STATUS_SCANTIMES(){ echo -e "${idsCL[LightCyan]}Last w/Replication Scan : ${idsCL[LightGreen]}${last_replcheck}${idsCL[Default]}" if [ ${scansfound_total} -le 500 ]; then - echo -en "\n${idsCL[LightCyan]}List out these '${scansfound_total}' scan times? (y/N): ${idsCL[Default]}" - read -n1 choice - if [ "${choice^^}" == "Y" ]; then - echo -en "\r\033[K" + if [ ${scansfound_total} -gt 15 ]; then + echo -en "\n${idsCL[LightCyan]}List out these '${scansfound_total}' 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 + echo + fi + if [ ${gofor} -eq 1 ]; then lastscansnum=${scansfound_total} last_scantimes=$(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes) IFS=$'\n'