From d8c76a0f5dd1c3858c32f5396947d128ecbbf1d8 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Mon, 30 Sep 2024 13:41:11 -0600 Subject: [PATCH] timeout nexus check after 10s --- pip-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pip-install.sh b/pip-install.sh index 50a8b4b..89de848 100644 --- a/pip-install.sh +++ b/pip-install.sh @@ -4,7 +4,7 @@ set -eou pipefail NEXUS_ROOT=https://nexus.web.sandia.gov/ -if curl --output /dev/null --silent --head --fail "$NEXUS_ROOT"; then +if curl --output /dev/null --silent --head --fail --max-time 10 "$NEXUS_ROOT"; then PIP_ARGS="--index-url=$NEXUS_ROOT/repository/pypi-proxy/simple" else PIP_ARGS=""