Update dsmon.sh

This commit is contained in:
2025-06-14 15:04:01 -05:00
parent 00ece04e19
commit 5d2f627926

View File

@@ -160,7 +160,7 @@ CHECK(){
nc_count=0; lc_count=0; completed=false; scanstart=$(date +%s)
until [ "${completed}" == "true" ]; do
until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
[ ${nc_count} -gt 0 ] && echo -e "\r\033[2K~\033[1A\r%"
[ ${nc_count} -gt 0 ] && echo -en "\r\033[2K\033[1A\r"
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then