Update dsmon.sh

This commit is contained in:
2025-06-14 13:58:17 -05:00
parent f02405cbd6
commit e1f902fd08

View File

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