From 166c62fd2137eb45fb8a5664f79cf8ff8f27d6e4 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 19 Feb 2017 20:14:46 +0100 Subject: build.bash: use $(go env GOPATH) --- build.bash | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'build.bash') diff --git a/build.bash b/build.bash index 0dcc272..e492f17 100755 --- a/build.bash +++ b/build.bash @@ -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) -- cgit v1.2.3