From a7ca9a748afb06a68c03d2acaef44649e007b876 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 21 Dec 2024 10:58:20 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"