Update nodemgmt-scripts.sh

This commit is contained in:
2025-08-17 19:31:14 -05:00
parent d91ec16675
commit 6ad32eee9c

View File

@@ -826,10 +826,18 @@ RUN_COMMAND(){
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]} ${idsCL[LightYellow]}${LH}${idsCL[Default]}"
DIVIDER false green
# echo "Running command: ${NCMD} ${RUNCMD}"
[ "${NCMD}" != "" ] && ${NCMD} "${RUNCMD}" || ${RUNCMD}
command_output=$([ "${NCMD}" != "" ] && ${NCMD} "${RUNCMD}" || ${RUNCMD})
touch /tmp/nmg.run.${nip}
DIVIDER false green
echo
if [ "${command_output}" != "" ]; then
echo ${command_output}
DIVIDER false green
echo
else
echo "Command was run, but not output was generated."
DIVIDER false green
echo
fi
fi
done
echo