From 37a81168a15f04145630d3a139d86e2622dfc3ab Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 1 Jan 2023 16:44:34 -0600 Subject: [PATCH] Update run.sh --- run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index c16980f..9d65d82 100755 --- a/run.sh +++ b/run.sh @@ -9,7 +9,7 @@ else fi source /opt/idssys/defaults/colors.inc -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 [ "${1}" != "runup" ]; then echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}" echo "" @@ -46,6 +46,8 @@ if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 20 echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}" echo "" fi +else + echo -e "${idsCL[Red]}Could not connect to 'git.schroedercity.com' for updates${idsCL[Default]}" fi if [ "${1}" != "runup" ]; then