From cf0b257a7d3a434920032d69f4f81f89d40df86f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Dec 2023 23:15:14 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index f1f1733e..3359481d 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -822,11 +822,14 @@ STATUS_SCANTIMES(){ if [ "${choice^^}" == "Y" ]; then echo -en "\r\033[K" lastscansnum=${scansfound} - last_scantimes=($(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes)) + last_scantimes=$(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes) + IFS=$'\n' + read -rd '' -a last_scantimes <<<"${last_scantimes}" + unset IFS echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}" for scantime in "${last_scantimes[@]}"; do if [[ "${scantime}" = *"~"* ]]; then - dt=${scantime%~*} + dt="${scantime%~*}" scantime=${scantime#*~} else dt=" "