[PATCH 10/18] version-gen: describe and sed in one go
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
GIT-VERSION-GEN | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index b7d2b8758e..962b9441e4 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -4,8 +4,7 @@ GVF=GIT-VERSION-FILE
DEF_VER=v2.40.GIT
describe () {
- VN=$(git describe --match "v[0-9]*" --dirty 2>/dev/null) || return 1
- VN=$(echo "$VN" | sed -e 's/-/./g')
+ VN=$(git describe --match "v[0-9]*" --dirty 2>/dev/null | sed -e 's/-/./g') || return 1
}
# First see if there is a version file (included in release tarballs),
--
2.40.0+fc1