timeout nexus check after 10s
This commit is contained in:
@@ -4,7 +4,7 @@ set -eou pipefail
|
|||||||
|
|
||||||
NEXUS_ROOT=https://nexus.web.sandia.gov/
|
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"
|
PIP_ARGS="--index-url=$NEXUS_ROOT/repository/pypi-proxy/simple"
|
||||||
else
|
else
|
||||||
PIP_ARGS=""
|
PIP_ARGS=""
|
||||||
|
Reference in New Issue
Block a user