From e1f902fd082f45236ddd5a81778f850eb5784a90 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 13:58:17 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index f00f122..ee5bd71 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -156,7 +156,7 @@ CHECK(){ done [ "${1}" != "report" ] && echo -e "\r\033[2K${idsCL[LightCyan]}${MSG}${spc}: ${idsCL[LightGreen]}Done${idsCL[Default]}" - + echo shopt -s nullglob nc_count=0; lc_count=0; completed=false; scanstart=$(date +%s) until [ "${completed}" == "true" ]; do @@ -172,7 +172,7 @@ CHECK(){ ((nc_count++)) fi done - ([ ${nc_count} -gt ${lc_count} ] || [ ${lc_count} -eq 0 ]) && echo + [ ${nc_count} -gt ${lc_count} ] && echo [ "${1}" != "report" ] && printf "\r${idsCL[LightCyan]}Completed on %d of %d hosts %s${idsCL[Default]}" "${nc_count}" "${#hostnames_sort[@]}" $([[ "$nc_count" -lt "${#hostnames_sort[@]}" ]] && echo " ..." || echo "")