Update dsmon.sh

This commit is contained in:
2025-06-14 16:47:30 -05:00
parent 1eb5f95f31
commit f5a294b46e

View File

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