From: Karel Zak Date: Tue, 29 Nov 2016 13:25:12 +0000 (+0100) Subject: build-sys: use sed to substitute X-Git-Tag: v2.30-rc1~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1a0fd98cd17088c2cce25f9105fa7ba8342a844;p=thirdparty%2Futil-linux.git build-sys: use sed to substitute Travis CI: tools/git-version-gen: 116: tools/git-version-gen: Bad substitution Signed-off-by: Karel Zak --- diff --git a/tools/git-version-gen b/tools/git-version-gen index e7249f9a2f..b287cb7940 100755 --- a/tools/git-version-gen +++ b/tools/git-version-gen @@ -113,7 +113,7 @@ elif test "`git log -1 --pretty=format:x . 2>&1`" = x \ then # Remove the "g" in git describe's output string, to save a byte. - v=${v/-g/-} + v=`echo "$v" | sed 's/-g/-/'`; case $v in *-rc*)