Skip to content

Commit

Permalink
fix search path for cuda rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
anphel31 committed Feb 6, 2025
1 parent f23a523 commit dc8b108
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function get_component_name_and_version {
COMPONENT="$IMAGE"
echo "Component name -> $COMPONENT"

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)
echo "Component Version -> $COMPONENT_VERSION"
}

Expand Down

0 comments on commit dc8b108

Please sign in to comment.