aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2022-03-25 11:28:37 -0500
committerDavid Barksdale <amatus@amat.us>2022-03-25 11:28:37 -0500
commitc93cf9ae12dc03c8569f72afd5d105f3ad98d235 (patch)
tree19a46aa645c50867a3acbdbefacfa38d55657cf0 /contrib
parentdc96fd3cca731a3e47f4759078e8aa29fe21486e (diff)
downloadgnunet-c93cf9ae12dc03c8569f72afd5d105f3ad98d235.tar.gz
gnunet-c93cf9ae12dc03c8569f72afd5d105f3ad98d235.zip
Remove bash-ism from get_version.sh
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 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
3VERSION= 3VERSION=
4if test -f ".version" 4if test -f ".version"
@@ -8,7 +8,7 @@ fi
8if test "x$VERSION" = "x" -a -d "./.git" 8if test "x$VERSION" = "x" -a -d "./.git"
9then 9then
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
13fi 13fi
14if test "x$VERSION" = "x" 14if test "x$VERSION" = "x"