You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/03/18 07:55:30 UTC
[GitHub] [incubator-nuttx] microhobby commented on a change in pull request #3094: toos/version.sh: Fix PATCH including extra version
microhobby commented on a change in pull request #3094:
URL: https://github.com/apache/incubator-nuttx/pull/3094#discussion_r596622910
##########
File path: tools/version.sh
##########
@@ -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} | cut -d'-' -f1 | cut -d'.' -f3`
Review comment:
Well, it is not usual, we usually use '-' for delimiter the extra version. I tested it with other cases, let's say if we have a tag that doesn't have the expected delimiter it will include the remaining of the tag in the PATCH
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org