Update nodemgmt-scripts.sh

This commit is contained in:
2024-11-29 18:56:08 -06:00
parent 59cc506aa7
commit 699c5035a4

View File

@@ -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]}"
@@ -374,7 +374,7 @@ NODEUPDATES() {
if [[ "${nodecmd}" != *"*"* ]]; then
nodecmd_output=$(cat ${nodecmd})
[ "${nodecmd_output}" != "" ] && echo -e "${nodecmd_output}"
# rm -f ${nodecmd}
rm -f ${nodecmd}
((nc_count++))
fi
done