Update run.sh

This commit is contained in:
2025-12-14 17:59:27 -06:00
parent 8016e2d6bd
commit 067b323cd5

4
run.sh
View File

@@ -18,7 +18,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults
else
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
if [ "`git log --pretty=%H ...refs/heads/main^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
if [ "${1}" != "runup" ]; then
echo -en "\e[1A";
echo -en "\e[0K\r${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
@@ -36,7 +36,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
fi
cd /opt/idssys/ta-proxmenu
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
if [ "`git log --pretty=%H ...refs/heads/main^ | head -n 1`" != "`git ls-remote origin -h refs/heads/main |cut -f1`" ]; then
if [ "${1}" != "runup" ]; then
[ ${udtd} -eq 0 ] && echo -en "\e[1A";
echo -en "\e[0K\r${idsCL[LightCyan]}Updating TA-ta-proxmenu...${idsCL[Default]}"