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 "")