Update dsmon.sh

This commit is contained in:
2025-06-14 15:05:30 -05:00
parent 5d2f627926
commit 852463b1cd

View File

@@ -164,9 +164,7 @@ CHECK(){
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then
# while IFS= read -r line; do
# printf "%s\n" "$line"
# done < /tmp/dscheck.${NTS}.results
[ ${nc_count} -eq 0 ] && echo -en "\r\033[2K\033[1A\r"
[ "${1}" != "report" ] && printf "%s\n" "$(cat /tmp/dscheck.${NTS}.results)"
rm -f /tmp/dscheck.${NTS}.* >/dev/null 2>&1
((nc_count++))