From c602b381572da1535f2a30e08dcdc6550052d2f6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 29 Nov 2024 18:44:45 -0600 Subject: [PATCH] Update run.sh --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 9e104225..e2083dab 100755 --- a/run.sh +++ b/run.sh @@ -10,8 +10,8 @@ source /opt/idssys/nodemgmt/conf/settings.conf source /opt/idssys/nodemgmt/defaults.inc # if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]] && [ "${1}" != "status" ]; then -if [ "${1}" == "update" ] || ([ "${1}" == "update" ] && [ "${2}" != "nodes" ]) || ([ "${1}" == "update-nodes" ] && [ "${3}" != "sync" ]); then - if [ "${1}" == "update-nodes" ] || [ "${2}" != "nodes" ]; then +if [ "${1}" == "update" ] || ([ "${1}" == "update" ] && [ "${2}" == "nodes" ]) || ([ "${1}" == "update-nodes" ] && [ "${3}" != "sync" ]); then + if [ "${1}" == "update-nodes" ] || [ "${2}" == "nodes" ]; then echo -e "\n${idsCL[LightGreen]}Updating Node-Manager${idsCL[Default]}" echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}" fi