diff options
author | Jakob Unterwurzacher | 2017-02-19 20:14:46 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-20 21:26:18 +0100 |
commit | 166c62fd2137eb45fb8a5664f79cf8ff8f27d6e4 (patch) | |
tree | 85e77cc6b16a32bdb73375ddc2cf63785c2e2cc7 /build.bash | |
parent | 1139c27c36de723391b6a5935159feaef49be299 (diff) |
build.bash: use $(go env GOPATH)
Diffstat (limited to 'build.bash')
-rwxr-xr-x | build.bash | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -4,13 +4,8 @@ set -eu cd "$(dirname "$0")" -# Starting with Go v1.8, GOPATH may be unset. $HOME/go is used instead. -if [[ -z ${GOPATH:-} ]] ; then - GOPATH1=$HOME/go -else - # GOPATH may contain multiple paths separated by ":" - GOPATH1=$(echo $GOPATH | cut -f1 -d:) -fi +# GOPATH may contain multiple paths separated by ":" +GOPATH1=$(go env GOPATH | cut -f1 -d:) # gocryptfs version according to git GITVERSION=$(git describe --tags --dirty) |