diff --git a/run.sh b/run.sh index e28c6d26..74e1cb09 100755 --- a/run.sh +++ b/run.sh @@ -16,7 +16,7 @@ if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then # fi # if [ "${1}" != "guiX" ]; then - if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then + if curl -m 15 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then if [ "${2}" != "q" ]; then echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}" echo "" @@ -57,6 +57,8 @@ if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then echo -en "\e[1A"; echo -e "\e[0K\r ${idsCL[LightCyan]}No Updates Available${idsCL[Default]}" fi + else + echo -e "${idsCL[Red]}Could not connect to 'git.schroedercity.com' for updates${idsCL[Default]}" fi fi ${SCRIPT} ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}