fix bash argument handling

This commit is contained in:
Carl Pearson
2024-09-30 13:44:32 -06:00
parent d8c76a0f5d
commit 1a6ab6e58f
2 changed files with 3 additions and 5 deletions

View File

@@ -5,9 +5,7 @@ set -eou pipefail
NEXUS_ROOT=https://nexus.web.sandia.gov/
if curl --output /dev/null --silent --head --fail --max-time 10 "$NEXUS_ROOT"; then
PIP_ARGS="--index-url=$NEXUS_ROOT/repository/pypi-proxy/simple"
python3 -m pip install --index-url=$NEXUS_ROOT/repository/pypi-proxy/simple cmakelang==0.6.13
else
PIP_ARGS=""
python3 -m pip install cmakelang==0.6.13
fi
python3 -m pip install "$PIP_ARGS" cmakelang==0.6.13