Update run.sh

This commit is contained in:
2023-11-16 22:25:46 -06:00
parent 5b55df0538
commit fac6fe6731

9
run.sh
View File

@@ -3,11 +3,7 @@
source /opt/idssys/defaults/colors.inc
if ([ "${1}" == "" ] || [ "${1}" == "update" ]) && curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
if [ "${1}" != "check" ]; then
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
echo ""
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}\n"
cd /opt/idssys/defaults
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
echo -en "\e[1A";
@@ -35,8 +31,7 @@ if ([ "${1}" == "" ] || [ "${1}" == "update" ]) && curl -m 3 -s --head --reques
else
echo -e "\e[1A\e[0K\r${idsCL[Cyan]}No Updates Available${idsCL[Default]}"
fi
fi
echo
else
/opt/idssys/vpnmon/vpnmon.sh ${1} ${2} ${3} ${4}
fi