Update dsmon.sh

This commit is contained in:
2024-01-06 23:34:07 -06:00
parent b6d5e06547
commit c6a9e3a9ed

View File

@@ -142,7 +142,7 @@ CHECK(){
nc_count=0; completed=false; scanstart=$(date +%s) nc_count=0; completed=false; scanstart=$(date +%s)
until [ "${completed}" == "true" ]; do until [ "${completed}" == "true" ]; do
if [ -f /tmp/dscheck.*.done ]; then until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
for host in /tmp/dscheck.*.done; do for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${nodestatus}") NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${nodestatus}")
if [ "${NTS}" != "*" ]; then if [ "${NTS}" != "*" ]; then
@@ -161,7 +161,6 @@ CHECK(){
completed=true completed=true
break break
fi fi
fi
sleep 1s sleep 1s
done done