Update status.inc

This commit is contained in:
2024-01-11 14:10:42 -06:00
parent 6dc210479f
commit dd4dd0744c

View File

@@ -986,7 +986,7 @@ STATUS_SCANTIMES(){
if [ ${scansfound_total} -gt 15 ]; then
echo -en "\n${idsCL[LightCyan]}List out these '${scansfound_total}' scan times? (A)ll/(N)ormal/(R)epl/repl(C)lean/()none [default=no] : ${idsCL[Default]}"
read -n1 choice
if [ "${choice^^}" == "A" ] || [ "${choice^^}" == "N" ] || [ "${choice}" == "R" ] || [ "${choice}" == "C" ]; then
if [ "${choice^^}" == "A" ] || [ "${choice^^}" == "N" ] || [ "${choice^^}" == "R" ] || [ "${choice^^}" == "C" ]; then
echo -en "\r\033[K"
gofor=1
else
@@ -1003,7 +1003,6 @@ STATUS_SCANTIMES(){
read -rd '' -a last_scantimes <<<"${last_scantimes}"
unset IFS
echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}------------------------------------------${idsCL[Default]}"
echo "HERE: ${choice^^} - ${scanrun}"
for scan in "${last_scantimes[@]}"; do
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 ]); then