Fix failed to copy binary when using make bin

If we use make bin, XC_OS and XC_ARCH will be None, the binary will failed to be copied.
pull/7752/head
bzhaoopenstack 7 years ago committed by GitHub
parent 2620e18247
commit f7793649ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -144,7 +144,7 @@ IFS="${OLDIFS}"
# Copy our OS/Arch to the bin/ directory
echo "==> Copying binaries for this platform..."
DEV_PLATFORM="./pkg/${XC_OS}_${XC_ARCH}"
DEV_PLATFORM="./pkg/$(go env GOOS)_$(go env GOARCH)"
for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do
cp -v ${F} bin/
cp -v ${F} "${MAIN_GOPATH}/bin/"

Loading…
Cancel
Save