summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-10-09 15:01:46 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-10-09 15:01:46 +0200
commitc5e203bf6aa5f0dd86e3214e6ed7fa854751ed3a (patch)
tree718c754efe303fb2bbbf196d442e8b6b5041cd68 /contrib
parentb6b190dcabf90c4b3991b23cd510c69584142b3a (diff)
-trim properly
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/get_version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/get_version.sh b/contrib/get_version.sh
index eaa011aba..b57f3524f 100755
--- a/contrib/get_version.sh
+++ b/contrib/get_version.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-VERSION=$(git describe --tags | tr -d '\n')
+VERSION=$(git describe --tags)
VERSION=${VERSION:1:${#VERSION}}
echo $VERSION > .version
-echo $VERSION
+echo -n $VERSION