From 08ef2c2ccaa37f00de6afd3771bad63813fc2520 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 14 Aug 2015 20:51:15 +0200 Subject: [PATCH] Use a single sed invocation --- version-gen.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/version-gen.sh b/version-gen.sh index 52f04e6a..a80e9790 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -2,12 +2,10 @@ DEFAULT_VERSION="5.5.0.git" -VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`" +VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | grep collectd | sed -e 's/^collectd-//' -e 's/-/./g'`" if test -z "$VERSION"; then VERSION="$DEFAULT_VERSION" fi -VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`" - printf "%s" "$VERSION" -- 2.30.2