From f7793649ec69314f68211ac999f47f41f3c67f12 Mon Sep 17 00:00:00 2001 From: bzhaoopenstack Date: Sat, 15 Jun 2019 00:34:33 +0800 Subject: [PATCH] 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. --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 3422f8ec3..5ff399039 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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/"