summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-30 16:13:16 +0100
committerJakob Unterwurzacher2016-10-30 16:17:39 +0100
commit4e95d394cf23978db2baadcf34fac3483f717ebd (patch)
treecee426f50f5dd431de9fed06b983b92b47e5f052
parentc7385b3681248d5935743c007d17fda724cc142f (diff)
build.bash: rename "GOPATH2" to "GOPATH1"
It's the 1st component of GOPATH, so call it like that.
-rwxr-xr-xbuild.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.bash b/build.bash
index c8f6111..ebf1888 100755
--- a/build.bash
+++ b/build.bash
@@ -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