Update run.sh

This commit is contained in:
2024-02-10 15:32:16 -06:00
parent 510d432c9b
commit 47f4324894

4
run.sh
View File

@@ -40,7 +40,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
cd /opt/idssys/linupx
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
if [ "${1}" != "runup" ]; then
[ ${udtd} -eq 1 ] && echo -en "\e[1A";
[ ${udtd} -eq 0 ] && echo -en "\e[1A";
echo -en "\e[0K\r${idsCL[LightCyan]}Updating LinUPx...${idsCL[Default]}"
fi
git fetch origin master >/dev/null 2>&1
@@ -57,7 +57,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
echo -e " ${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}"
fi
elif [ "${1}" != "runup" ]; then
[ ${udtd} -eq 1 ] && echo -en "\e[1A"
[ ${udtd} -eq 0 ] && echo -en "\e[1A"
echo -e "\e[0K\r ${idsCL[Green]}No updates available${idsCL[Default]}"
echo ""
fi