summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-aux/git-version-gen2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index e9e90b9..6ef7760 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -13,7 +13,7 @@ then
git update-index --refresh > /dev/null 2>&1
VERSION=`git describe --abbrev=4 --match='v[0-9]*' --dirty 2>/dev/null`
VERSION=`echo "$VERSION" | sed 's/^v//'`
- [ -n "$VERSION" ] && echo -n "$VERSION" > "$VERFILE"
+ [ -n "$VERSION" ] && printf "%s" "$VERSION" > "$VERFILE"
fi
if [ -f "$VERFILE" ]