From 1a27fb6cff054ae6f295242cdc19f258cdd48367 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 6 Jul 2025 22:46:23 -0500 Subject: [PATCH] Update status.inc --- inc/status.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index e907c963..251e365b 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -1198,10 +1198,10 @@ STATUS_SCANTIMES(){ gofor=0 fi else - gofor=1 + gofor=2 echo fi - if [ ${gofor} -eq 1 ]; then + if [ ${gofor} -gt 0 ]; then lastscansnum=${scansfound_total} last_scantimes=$(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes) IFS=$'\n' @@ -1212,7 +1212,7 @@ STATUS_SCANTIMES(){ scandate=$(echo "${scan}" | cut -d '~' -f 1) scantime=$(echo "${scan}" | cut -d '~' -f 2) scanrun=$(echo "${scan}" | cut -d '~' -f 3) - if [ "${choice^^}" == "A" ] || ([ "${choice^^}" == "N" ] && [ ${scanrun} -eq 0 ]) || ([ "${choice^^}" == "R" ] && [ ${scanrun} -eq 1 ]) || ([ "${choice^^}" == "C" ] && [ ${scanrun} -eq 2 ]) || ([ "${choice^^}" == "L" ] && ([ ${scanrun} -eq 0 ] && [ ${scantime} -gt 60 ] || [ ${scanrun} -gt 0 ] && [ ${scantime} -gt 70 ])); then + if ${gofor} -eq 2 ] || [ "${choice^^}" == "A" ] || ([ "${choice^^}" == "N" ] && [ ${scanrun} -eq 0 ]) || ([ "${choice^^}" == "R" ] && [ ${scanrun} -eq 1 ]) || ([ "${choice^^}" == "C" ] && [ ${scanrun} -eq 2 ]) || ([ "${choice^^}" == "L" ] && ([ ${scanrun} -eq 0 ] && [ ${scantime} -gt 60 ] || [ ${scanrun} -gt 0 ] && [ ${scantime} -gt 70 ])); then echo -en "${idsCL[White]} ${scandate} (${scantime}s) ${idsCL[Yellow]}$(SHOW_TIME ${scantime} s) " [ ${scanrun} -eq 1 ] && echo -en "${idsCL[LightCyan]}<-- Replication Run " [ ${scanrun} -eq 2 ] && echo -en "${idsCL[Blue]}<-- Replication & Clean Run "