mirror of
https://github.com/apache/nuttx.git
synced 2026-08-06 13:08:59 +00:00
toos/version.sh: Fix PATCH including extra version
VERSION is also used to get MAJOR, MINOR and PATCH configs. The commit85edf0fadded the remaining of the tag as an extra version and this is being added erroneously to the PATCH variable. This commit excludes the extra version from PATCH variable keeping only the number. Fixes:85edf0f(tools/version.sh: Add the remaining cut to VERSION) Signed-off-by: Matheus Castello <matheus@castello.eng.br>
This commit is contained in:
parent
cbb8a542e5
commit
738034e2eb
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ if [ "X${MAJOR}.${MINOR}" = "X${VERSION}" ]; then
|
|||
echo $ADVICE
|
||||
exit 4
|
||||
fi
|
||||
PATCH=`echo ${VERSION} | cut -d'.' -f3`
|
||||
PATCH=`echo ${VERSION} | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+" | cut -d'.' -f3`
|
||||
|
||||
# Get GIT information (if not provided on the command line)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue