build.bash: rename "GOPATH2" to "GOPATH1"
It's the 1st component of GOPATH, so call it like that.
This commit is contained in:
parent
c7385b3681
commit
4e95d394cf
|
@ -5,7 +5,7 @@ set -eu
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
# GOPATH may contain multiple paths separated by ":"
|
# GOPATH may contain multiple paths separated by ":"
|
||||||
GOPATH2=$(echo $GOPATH | cut -f1 -d:)
|
GOPATH1=$(echo $GOPATH | cut -f1 -d:)
|
||||||
|
|
||||||
# gocryptfs version according to git
|
# gocryptfs version according to git
|
||||||
GITVERSION=$(git describe --tags --dirty)
|
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
|
# Note: git in CentOS 7 does not have "git -C" yet. That's why we use
|
||||||
# plain "cd" in a subshell.
|
# plain "cd" in a subshell.
|
||||||
GITVERSIONFUSE=$(
|
GITVERSIONFUSE=$(
|
||||||
cd $GOPATH2/src/github.com/hanwen/go-fuse
|
cd $GOPATH1/src/github.com/hanwen/go-fuse
|
||||||
SHORT=$(git rev-parse --short HEAD)
|
SHORT=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
if [[ $SHORT == 5e829bc ]] ; then
|
if [[ $SHORT == 5e829bc ]] ; then
|
||||||
|
@ -51,5 +51,5 @@ fi
|
||||||
|
|
||||||
./gocryptfs -version
|
./gocryptfs -version
|
||||||
|
|
||||||
mkdir -p $GOPATH2/bin
|
mkdir -p $GOPATH1/bin
|
||||||
cp -af gocryptfs $GOPATH2/bin
|
cp -af gocryptfs $GOPATH1/bin
|
||||||
|
|
Loading…
Reference in New Issue