Merge pull request #7752 from bzhaoopenstack/fix_ci

Fix failed to copy binary when using make bin
This commit is contained in:
Adrien Delorme 2019-06-17 14:57:52 +02:00 committed by GitHub
commit f04c2d8910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ IFS="${OLDIFS}"
# Copy our OS/Arch to the bin/ directory # Copy our OS/Arch to the bin/ directory
echo "==> Copying binaries for this platform..." 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 for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do
cp -v ${F} bin/ cp -v ${F} bin/
cp -v ${F} "${MAIN_GOPATH}/bin/" cp -v ${F} "${MAIN_GOPATH}/bin/"