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'