Update dsmon.sh

This commit is contained in:
2025-06-14 23:06:27 -05:00
parent a6be057751
commit fe41a377a2

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\n" [ ${nc_count} -eq 0 ] && echo -e "\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++))