diff options
author | David Barksdale <amatus@amat.us> | 2022-03-25 11:28:37 -0500 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2022-03-25 11:28:37 -0500 |
commit | c93cf9ae12dc03c8569f72afd5d105f3ad98d235 (patch) | |
tree | 19a46aa645c50867a3acbdbefacfa38d55657cf0 /contrib | |
parent | dc96fd3cca731a3e47f4759078e8aa29fe21486e (diff) | |
download | gnunet-c93cf9ae12dc03c8569f72afd5d105f3ad98d235.tar.gz gnunet-c93cf9ae12dc03c8569f72afd5d105f3ad98d235.zip |
Remove bash-ism from get_version.sh
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/get_version.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/get_version.sh b/contrib/get_version.sh index 35eed9f94..778d8efe5 100755 --- a/contrib/get_version.sh +++ b/contrib/get_version.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # Gets the version number from git, or from the contents of .version | 2 | # Gets the version number from git, or from the contents of .version |
3 | VERSION= | 3 | VERSION= |
4 | if test -f ".version" | 4 | if test -f ".version" |
@@ -8,7 +8,7 @@ fi | |||
8 | if test "x$VERSION" = "x" -a -d "./.git" | 8 | if test "x$VERSION" = "x" -a -d "./.git" |
9 | then | 9 | then |
10 | VERSION=$(git describe --tags) | 10 | VERSION=$(git describe --tags) |
11 | VERSION=${VERSION:1:${#VERSION}} | 11 | VERSION=${VERSION#v} |
12 | echo $VERSION > .version | 12 | echo $VERSION > .version |
13 | fi | 13 | fi |
14 | if test "x$VERSION" = "x" | 14 | if test "x$VERSION" = "x" |