Update run.sh
This commit is contained in:
8
run.sh
8
run.sh
@@ -12,6 +12,7 @@ if curl -m 5 -s --head --request GET https://git.schroedercity.com | grep "HTTP
|
||||
if [ "${1}" != "runup" ]; then
|
||||
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
|
||||
echo ""
|
||||
udtd=false
|
||||
fi
|
||||
|
||||
if [ "${1}" != "runup" ]; then
|
||||
@@ -20,6 +21,7 @@ if curl -m 5 -s --head --request GET https://git.schroedercity.com | grep "HTTP
|
||||
if [ "${1}" != "runup" ]; then
|
||||
echo -en "\e[1A";
|
||||
echo -e "${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
|
||||
udtd=true
|
||||
fi
|
||||
git fetch origin master >/dev/null 2>&1
|
||||
git reset --hard origin/master >/dev/null 2>&1
|
||||
@@ -39,6 +41,7 @@ if curl -m 5 -s --head --request GET https://git.schroedercity.com | grep "HTTP
|
||||
if [ "${1}" != "runup" ]; then
|
||||
echo -en "\e[1A";
|
||||
echo -e "\e[0K\r ${idsCL[LightCyan]}Updating LinUPx...${idsCL[Default]}"
|
||||
udtd=true
|
||||
fi
|
||||
git fetch origin master >/dev/null 2>&1
|
||||
git reset --hard origin/master >/dev/null 2>&1
|
||||
@@ -54,6 +57,11 @@ if curl -m 5 -s --head --request GET https://git.schroedercity.com | grep "HTTP
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ "${1}" != "runup" ] && [ "${udtd}" == "false" ]; then
|
||||
echo -en "\e[1A";
|
||||
echo -e "\e[0K\r ${idsCL[Green]}No updates available${idsCL[Default]}"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
else
|
||||
echo -e "${idsCL[Red]}Could not connect to 'git.schroedercity.com' for updates${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user