diff options
author | Jakob Unterwurzacher | 2016-10-30 16:13:16 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-30 16:17:39 +0100 |
commit | 4e95d394cf23978db2baadcf34fac3483f717ebd (patch) | |
tree | cee426f50f5dd431de9fed06b983b92b47e5f052 | |
parent | c7385b3681248d5935743c007d17fda724cc142f (diff) |
build.bash: rename "GOPATH2" to "GOPATH1"
It's the 1st component of GOPATH, so call it like that.
-rwxr-xr-x | build.bash | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -5,7 +5,7 @@ set -eu cd "$(dirname "$0")" # GOPATH may contain multiple paths separated by ":" -GOPATH2=$(echo $GOPATH | cut -f1 -d:) +GOPATH1=$(echo $GOPATH | cut -f1 -d:) # gocryptfs version according to git GITVERSION=$(git describe --tags --dirty) @@ -14,7 +14,7 @@ GITVERSION=$(git describe --tags --dirty) # Note: git in CentOS 7 does not have "git -C" yet. That's why we use # plain "cd" in a subshell. GITVERSIONFUSE=$( - cd $GOPATH2/src/github.com/hanwen/go-fuse + cd $GOPATH1/src/github.com/hanwen/go-fuse SHORT=$(git rev-parse --short HEAD) if [[ $SHORT == 5e829bc ]] ; then @@ -51,5 +51,5 @@ fi ./gocryptfs -version -mkdir -p $GOPATH2/bin -cp -af gocryptfs $GOPATH2/bin +mkdir -p $GOPATH1/bin +cp -af gocryptfs $GOPATH1/bin |