mirror of https://github.com/status-im/consul.git
Merge pull request #1234 from jovandeginste/quote-variable
Add quotes to locations in case pwd contains spaces
This commit is contained in:
commit
e347f20790
|
@ -9,7 +9,7 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
||||||
|
|
||||||
# Change into that directory
|
# Change into that directory
|
||||||
cd $DIR
|
cd "$DIR"
|
||||||
|
|
||||||
# Get the git commit
|
# Get the git commit
|
||||||
GIT_COMMIT=$(git rev-parse HEAD)
|
GIT_COMMIT=$(git rev-parse HEAD)
|
||||||
|
@ -49,4 +49,4 @@ go build \
|
||||||
-ldflags "${CGO_LDFLAGS} -X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY} -X main.GitDescribe ${GIT_DESCRIBE}" \
|
-ldflags "${CGO_LDFLAGS} -X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY} -X main.GitDescribe ${GIT_DESCRIBE}" \
|
||||||
-v \
|
-v \
|
||||||
-o bin/consul${EXTENSION}
|
-o bin/consul${EXTENSION}
|
||||||
cp bin/consul${EXTENSION} ${GOPATHSINGLE}/bin
|
cp bin/consul${EXTENSION} "${GOPATHSINGLE}/bin"
|
||||||
|
|
Loading…
Reference in New Issue