From f02405cbd6503a0cdad7653dea905bab7d6adc56 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 13:57:34 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index 45abc96..f00f122 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -172,7 +172,7 @@ CHECK(){ ((nc_count++)) fi done - [ ${nc_count} -gt ${lc_count} ] && echo + ([ ${nc_count} -gt ${lc_count} ] || [ ${lc_count} -eq 0 ]) && 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 "")