Update run.sh

This commit is contained in:
2023-05-14 17:21:14 -05:00
parent 840eb435f7
commit 099f25bf1c

5
run.sh
View File

@@ -5,7 +5,7 @@ source /opt/idssys/defaults/colors.inc
source /opt/idssys/defaults/default.inc
source /opt/idssys/powerwall/powerwall.conf
if [[ "${noupdate}" != *"${1}"* ]] && [[ "${noupdate}" != *"${2}"* ]] && [[ "${1}" != *"service"* ]] && [[ "${2}" != *"service"* ]]; then
if [ "${2}" == "update" ]; then
if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
if [ "${2}" != "q" ]; then
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
@@ -48,8 +48,9 @@ if [[ "${noupdate}" != *"${1}"* ]] && [[ "${noupdate}" != *"${2}"* ]] && [[ "${1
echo -e "\e[0K\r ${idsCL[LightCyan]}No Updates Available${idsCL[Default]}"
fi
fi
else
/opt/idssys/powerwall/powerwall.sh $1 $2 $3 $4
fi
/opt/idssys/powerwall/powerwall.sh $1 $2 $3 $4
exit 0