Update run.sh

This commit is contained in:
2023-05-27 16:23:31 -05:00
parent d819f6cb02
commit c1e731c72c

9
run.sh
View File

@@ -52,10 +52,15 @@ if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]] && [ "
git pull >/dev/null 2>&1
git submodule update --remote >/dev/null 2>&1
/bin/chmod +x /opt/idssys/nodemgmt/nodemgmt-scripts.sh 2>&1
source ${FOLDER}/defaults.inc
if [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}"
fi
echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}"
else
echo -e "${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}"
fi
elif [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[LightCyan]}No Updates Available${idsCL[Default]}"