mirror of
https://github.com/apache/nuttx.git
synced 2026-05-12 01:42:49 +08: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:
committed by
Xiang Xiao
parent
cbb8a542e5
commit
738034e2eb
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user