diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 7d77c2b0..2250136f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -342,14 +342,14 @@ NODEUPDATES() { start=`date +%s` cw=40; rm -f /tmp/.nodeupdate.* - # if [ "${1}" = "report" ]; then + if [ "${1}" = "report" ]; then unset idsCL idsBG idsST idsCL=('') idsBG=('') idsST=('') - # else + else echo - # fi + fi declare -i spc1; declare -i c echo -e "${idsCL[LightGreen]}Updating All Nodes${idsCL[Default]}" echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}" diff --git a/run.sh b/run.sh index e2083dab..0c8992e4 100755 --- a/run.sh +++ b/run.sh @@ -9,6 +9,11 @@ source /opt/idssys/defaults/default.inc source /opt/idssys/nodemgmt/conf/settings.conf source /opt/idssys/nodemgmt/defaults.inc +unset idsCL idsBG idsST +idsCL=('') +idsBG=('') +idsST=('') + # 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