diff --git a/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci b/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci index caafe124e9..e8dfd86054 100644 --- a/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci +++ b/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci @@ -52,7 +52,7 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif ARG GPU_TYPE="" ARG GPU_TARBALL="" RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \ - VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \ + VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p'); \ if [ -z "$VERSION" ]; then \ echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \ exit 1; \ diff --git a/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci b/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci index f28579229b..0d6116e88e 100644 --- a/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci +++ b/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci @@ -43,7 +43,7 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif ARG GPU_TYPE="" ARG GPU_TARBALL="" RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \ - VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \ + VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p'); \ if [ -z "$VERSION" ]; then \ echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \ exit 1; \ diff --git a/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci b/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci index d826437490..4ddc13076d 100644 --- a/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci +++ b/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci @@ -63,7 +63,7 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif ARG GPU_TYPE="" ARG GPU_TARBALL="" RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \ - VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \ + VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p'); \ if [ -z "$VERSION" ]; then \ echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \ exit 1; \