Skip to content

Commit

Permalink
Add quotes to locations in case pwd contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jovandeginste committed Sep 11, 2015
1 parent f5d7397 commit a626ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"

# Change into that directory
cd $DIR
cd "$DIR"

# Get the git commit
GIT_COMMIT=$(git rev-parse HEAD)
Expand Down Expand Up @@ -49,4 +49,4 @@ go build \
-ldflags "${CGO_LDFLAGS} -X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY} -X main.GitDescribe ${GIT_DESCRIBE}" \
-v \
-o bin/consul${EXTENSION}
cp bin/consul${EXTENSION} ${GOPATHSINGLE}/bin
cp bin/consul${EXTENSION} "${GOPATHSINGLE}/bin"

0 comments on commit a626ae1

Please sign in to comment.