Update dsmon.sh

This commit is contained in:
2025-06-14 15:02:44 -05:00
parent 144efc878c
commit 35626cddd0

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 -en "\r\033[2K~\n\r\033[2K#\033[1A\r%"
[ ${nc_count} -gt 0 ] && echo -e "\r\033[2K~\n\r\033[2K#\033[1A\r%"
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then