Update status.inc
This commit is contained in:
@@ -822,11 +822,14 @@ STATUS_SCANTIMES(){
|
|||||||
if [ "${choice^^}" == "Y" ]; then
|
if [ "${choice^^}" == "Y" ]; then
|
||||||
echo -en "\r\033[K"
|
echo -en "\r\033[K"
|
||||||
lastscansnum=${scansfound}
|
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]}"
|
echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}"
|
||||||
for scantime in "${last_scantimes[@]}"; do
|
for scantime in "${last_scantimes[@]}"; do
|
||||||
if [[ "${scantime}" = *"~"* ]]; then
|
if [[ "${scantime}" = *"~"* ]]; then
|
||||||
dt=${scantime%~*}
|
dt="${scantime%~*}"
|
||||||
scantime=${scantime#*~}
|
scantime=${scantime#*~}
|
||||||
else
|
else
|
||||||
dt=" "
|
dt=" "
|
||||||
|
|||||||
Reference in New Issue
Block a user