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,7 +5,7 @@ LABEL maintainer="Carl Pearson <me@carlpearson.net>"
LABEL org.opencontainers.image.title="cmake-format 0.6"
LABEL description="A container with cmake-format 0.6"
LABEL org.opencontainers.image.description="A container with cmake-format 0.6"
LABEL org.opencontainers.image.source https://github.com/cwpearson/clang-format
LABEL org.opencontainers.image.source https://github.com/cwpearson/cmake-format
LABEL org.opencontainers.image.licenses="GPLv3"
RUN dnf install -y \

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