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