Update run.sh
This commit is contained in:
4
run.sh
4
run.sh
@@ -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
|
git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults
|
||||||
else
|
else
|
||||||
cd /opt/idssys/defaults
|
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
|
if [ "${1}" != "runup" ]; then
|
||||||
echo -en "\e[1A";
|
echo -en "\e[1A";
|
||||||
echo -en "\e[0K\r${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
|
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
|
fi
|
||||||
|
|
||||||
cd /opt/idssys/ta-proxmenu
|
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
|
if [ "${1}" != "runup" ]; then
|
||||||
[ ${udtd} -eq 0 ] && echo -en "\e[1A";
|
[ ${udtd} -eq 0 ] && echo -en "\e[1A";
|
||||||
echo -en "\e[0K\r${idsCL[LightCyan]}Updating TA-ta-proxmenu...${idsCL[Default]}"
|
echo -en "\e[0K\r${idsCL[LightCyan]}Updating TA-ta-proxmenu...${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user