diff --git a/tools/version.sh b/tools/version.sh index cf7027045ec..e5962325284 100755 --- a/tools/version.sh +++ b/tools/version.sh @@ -91,7 +91,7 @@ if [ -z ${VERSION} ] ; then # If the VERSION does not match X.Y.Z, retrieve version from the tag if [[ ! ${VERSION} =~ ([0-9]+)\.([0-9]+)\.([0-9]+) ]] ; then - VERSION=`git -C ${WD} tag --sort=v:refname | grep -E "[0-9]+\.[0-9]+\.[0-9]+" | tail -1 | cut -d'-' -f2` + VERSION=`git -C ${WD} tag --sort=v:refname | grep -E "nuttx-[0-9]+\.[0-9]+\.[0-9]+" | tail -1 | cut -d'-' -f2` fi fi