From c329af036a4452ae4c058b20d627fc32d38c1775 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 14:41:42 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 43852f7..0dbcc68 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -172,9 +172,7 @@ CHECK(){ ((nc_count++)) fi done - - [ "${1}" != "report" ] && [ ${lc_count} -gt 0 ] && echo -e "\r\033[2K" - + if [ "${1}" != "report" ]; then [ ${nc_count} -gt ${lc_count} ] && echo printf "\r${idsCL[LightCyan]}Completed on %d of %d hosts %s${idsCL[Default]}" "${nc_count}" "${#hostnames_sort[@]}" $([[ "$nc_count" -lt "${#hostnames_sort[@]}" ]] && echo " ..." || echo "")