diff --git a/tools/git-version-gen b/tools/git-version-gen index e7249f9a2..b287cb794 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*)