]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
scripts: handle libnvme version update correctly
authorDaniel Wagner <wagi@kernel.org>
Thu, 31 Oct 2024 09:33:40 +0000 (10:33 +0100)
committerDaniel Wagner <wagi@kernel.org>
Thu, 31 Oct 2024 09:33:40 +0000 (10:33 +0100)
commitafa17e7d91a512c7f89eb09ee992e76193e6b817
tree59267deec3c96397f7d981aa63ec8a6d27ae44d6
parentb2193246c0bcc147e904f2d1aeb48814eb9c43e4
scripts: handle libnvme version update correctly

The pattern \([\.1-9]\+\) captures strings like .1, .9, or other
partial version numbers starting from 1. For full version formats, we
can update the pattern to capture more comprehensive version styles,
including major, minor, and patch levels (e.g., 1.0, 1.2.3, 10.3, etc.).

Exchange the match with:

\([0-9]\+\) matches the major version, consisting of one or more digits.

\(\.[0-9]\+\)* matches any additional minor or patch versions, capturing
optional segments starting with a dot and followed by one or more
digits.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
scripts/release.sh