Update dsmon.sh

This commit is contained in:
2025-06-14 14:02:25 -05:00
parent 358e1ee754
commit f0306a274c

View File

@@ -162,11 +162,7 @@ CHECK(){
until [ "${completed}" == "true" ]; do
until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
echo -e "\r\r\n"
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 "")
fi
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then