diff --git a/basetag.sh b/basetag.sh index 7acf05f..907d77f 100755 --- a/basetag.sh +++ b/basetag.sh @@ -14,7 +14,7 @@ # https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351 #get highest tag number containing at least 2 dots -VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.*\.*"` +VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"` #replace . with space so can split into an array VERSION_BITS=(${VERSION//./ })