Update run.sh

This commit is contained in:
2023-05-14 22:17:46 -05:00
parent aa919d2c08
commit 45fe9281d1

4
run.sh
View File

@@ -3,6 +3,7 @@
source /opt/idssys/defaults/colors.inc
source /opt/idssys/defaults/default.inc
source /opt/idssys/powerwall/defaults.inc
source /opt/idssys/powerwall/powerwall.conf
if [ "${1}" == "update" ] || [ "${1}" == "" ]; then
@@ -39,9 +40,10 @@ if [ "${1}" == "update" ] || [ "${1}" == "" ]; then
git pull >/dev/null 2>&1
git submodule update --remote >/dev/null 2>&1
/bin/chmod +x /opt/idssys/powerwall/powerwall.sh 2>&1
source /opt/idssys/powerwall/defaults.inc
if [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}"
echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}"
fi
elif [ "${2}" != "q" ]; then
echo -en "\e[1A";