From 5aca0d147db3297e2d15aa06c59f49e9f780f40b Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 13 Feb 2023 15:10:08 +0100 Subject: [PATCH] Use - as version-tag separator for libnvidia-container Signed-off-by: Evan Lezar --- scripts/get-component-versions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get-component-versions.sh b/scripts/get-component-versions.sh index 3c82e7e2..4e4f3c31 100755 --- a/scripts/get-component-versions.sh +++ b/scripts/get-component-versions.sh @@ -36,9 +36,9 @@ NVIDIA_DOCKER_ROOT=${PROJECT_ROOT}/third_party/nvidia-docker # Get version for libnvidia-container libnvidia_container_version_tag=$(grep "#define NVC_VERSION" ${LIBNVIDIA_CONTAINER_ROOT}/src/nvc.h \ | sed -e 's/#define NVC_VERSION[[:space:]]"\(.*\)"/\1/') -libnvidia_container_version=${libnvidia_container_version_tag%%~*} +libnvidia_container_version=${libnvidia_container_version_tag%%-*} libnvidia_container_tag=${libnvidia_container_version_tag##${libnvidia_container_version}} -libnvidia_container_tag=${libnvidia_container_tag##\~} +libnvidia_container_tag=${libnvidia_container_tag##\-} versions_makefile=${NVIDIA_CONTAINER_TOOLKIT_ROOT}/versions.mk # Get version for nvidia-container-toolit