Update run.sh
This commit is contained in:
4
run.sh
4
run.sh
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
source /opt/idssys/defaults/colors.inc
|
source /opt/idssys/defaults/colors.inc
|
||||||
source /opt/idssys/defaults/default.inc
|
source /opt/idssys/defaults/default.inc
|
||||||
|
source /opt/idssys/powerwall/defaults.inc
|
||||||
source /opt/idssys/powerwall/powerwall.conf
|
source /opt/idssys/powerwall/powerwall.conf
|
||||||
|
|
||||||
if [ "${1}" == "update" ] || [ "${1}" == "" ]; then
|
if [ "${1}" == "update" ] || [ "${1}" == "" ]; then
|
||||||
@@ -39,9 +40,10 @@ if [ "${1}" == "update" ] || [ "${1}" == "" ]; then
|
|||||||
git pull >/dev/null 2>&1
|
git pull >/dev/null 2>&1
|
||||||
git submodule update --remote >/dev/null 2>&1
|
git submodule update --remote >/dev/null 2>&1
|
||||||
/bin/chmod +x /opt/idssys/powerwall/powerwall.sh 2>&1
|
/bin/chmod +x /opt/idssys/powerwall/powerwall.sh 2>&1
|
||||||
|
source /opt/idssys/powerwall/defaults.inc
|
||||||
if [ "${2}" != "q" ]; then
|
if [ "${2}" != "q" ]; then
|
||||||
echo -en "\e[1A";
|
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
|
fi
|
||||||
elif [ "${2}" != "q" ]; then
|
elif [ "${2}" != "q" ]; then
|
||||||
echo -en "\e[1A";
|
echo -en "\e[1A";
|
||||||
|
|||||||
Reference in New Issue
Block a user