build.bash: replace "git -C"
"-C" is not supported on older git versions. Instead, just cd into the directory. See issue #20.
This commit is contained in:
parent
4d79fba285
commit
bb16f2d565
@ -7,7 +7,7 @@ cd "$(dirname "$0")"
|
|||||||
# gocryptfs version according to git
|
# gocryptfs version according to git
|
||||||
GITVERSION=$(git describe --tags --dirty)
|
GITVERSION=$(git describe --tags --dirty)
|
||||||
# go-fuse version according to git
|
# go-fuse version according to git
|
||||||
GITVERSIONFUSE=$(git -C $GOPATH/src/github.com/hanwen/go-fuse rev-parse --short HEAD)
|
GITVERSIONFUSE=$(cd $GOPATH/src/github.com/hanwen/go-fuse && git rev-parse --short HEAD)
|
||||||
|
|
||||||
# go version go1.5.1 linux/amd64
|
# go version go1.5.1 linux/amd64
|
||||||
V=$(go version | cut -d" " -f3 | cut -c3-5)
|
V=$(go version | cut -d" " -f3 | cut -c3-5)
|
||||||
|
Loading…
Reference in New Issue
Block a user