Skip to content

Commit 7df0cd2

Browse files
authored
BuildNvidiaDriverContainers.sh: fix processing of cuda RPM version (#12244)
1 parent f23a523 commit 7df0cd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.pipelines/containerSourceData/scripts/BuildNvidiaDriverContainers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function get_component_name_and_version {
167167
COMPONENT="$IMAGE"
168168
echo "Component name -> $COMPONENT"
169169

170-
COMPONENT_VERSION=$(rpm -q --qf '%{VERSION}-%{release}\n' -p $HOST_MOUNTED_DIR/RPMS/x86_64/$IMAGE* | rev | cut -d '.' -f 2- | rev)
170+
COMPONENT_VERSION=$(rpm -q --qf '%{VERSION}-%{release}\n' -p $HOST_MOUNTED_DIR/RPMS/x86_64/$IMAGE-[0-9]* | rev | cut -d '.' -f 2- | rev)
171171
echo "Component Version -> $COMPONENT_VERSION"
172172
}
173173

0 commit comments

Comments
 (0)