Update status.inc

This commit is contained in:
2023-12-27 12:06:52 -06:00
parent a5c6810107
commit 4b292d918a

View File

@@ -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'