Merge pull request #1538 from fatih/build-script-fix

scripts/build.sh: fix GOPATH/bin folder breaking build
This commit is contained in:
Paul Hinze 2015-04-15 11:50:55 -05:00
commit 11280a09b3
1 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,12 @@ OLDIFS=$IFS
IFS=: MAIN_GOPATH=($GOPATH)
IFS=$OLDIFS
# Create GOPATH/bin if it's doesn't exists
if [ ! -d $MAIN_GOPATH/bin ]; then
echo "==> Creating GOPATH/bin directory..."
mkdir -p $MAIN_GOPATH/bin
fi
# Copy our OS/Arch to the bin/ directory
DEV_PLATFORM="./pkg/$(go env GOOS)_$(go env GOARCH)"
for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do