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