We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f23a523 commit 7df0cd2Copy full SHA for 7df0cd2
1 file changed
.pipelines/containerSourceData/scripts/BuildNvidiaDriverContainers.sh
@@ -167,7 +167,7 @@ function get_component_name_and_version {
167
COMPONENT="$IMAGE"
168
echo "Component name -> $COMPONENT"
169
170
- COMPONENT_VERSION=$(rpm -q --qf '%{VERSION}-%{release}\n' -p $HOST_MOUNTED_DIR/RPMS/x86_64/$IMAGE* | rev | cut -d '.' -f 2- | rev)
+ COMPONENT_VERSION=$(rpm -q --qf '%{VERSION}-%{release}\n' -p $HOST_MOUNTED_DIR/RPMS/x86_64/$IMAGE-[0-9]* | rev | cut -d '.' -f 2- | rev)
171
echo "Component Version -> $COMPONENT_VERSION"
172
}
173
0 commit comments