Update dsmon.sh

This commit is contained in:
2025-06-14 23:06:01 -05:00
parent 8c0078607e
commit a6be057751

View File

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