From 481de4c7f97a909d5a2c489f90e3fb325908eec9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 26 Jan 2024 10:06:13 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index c12b7a7..d9011c3 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -360,8 +360,11 @@ RUNCMD(){ # [ "${nodecmd_output}" != "" ] && echo -e "${nodecmd_output}\n" # fi # rm -f ${nodecmd} - echo ${nodecmd} - ((nc_count++)) + if [[ "${nodecmd}" != *"*"* ]]; then + echo ${nodecmd} + rm -f ${nodecmd} + ((nc_count++)) + fi done echo "${ncount} - ${nc_count}\n" if [ ${nc_count} -eq ${ncount} ]; then