Update run.sh

This commit is contained in:
2024-02-10 15:26:48 -06:00
parent f8045fa26b
commit b533af3a76

9
run.sh
View File

@@ -23,7 +23,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
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
echo -en "\e[1A";
echo -en "${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
echo -en "\e[0K\r${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
udtd=true
fi
git fetch origin master >/dev/null 2>&1
@@ -57,11 +57,12 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
source /opt/idssys/linupx/defaults.inc
# echo -en "\e[1A";
# echo -e "\e[0K\r ${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}"
echo -e "${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}"
echo -e " ${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}"
fi
elif [ "${1}" != "runup" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[Green]}No updates available${idsCL[Default]}"
# echo -en "\e[1A";
# echo -e "\e[0K\r ${idsCL[Green]}No updates available${idsCL[Default]}"
echo -e "${idsCL[Green]}No updates available${idsCL[Default]}"
echo ""
fi