diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 20c4cf92..67b18f1e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -813,7 +813,7 @@ RUN_COMMAND(){ if [ ! -f /tmp/nmg.run.${nip} ]; then # echo "Running command: ${NCMD} ${RUNCMD}" - ${NCMD} ${RUNCMD} + [ "${NCMD}" != "" ] && ${NCMD} "${RUNCMD}" || ${RUNCMD} touch /tmp/nmg.run.${nip} else echo "Skipping, already ran command on this host"