diff --git a/scripts/build.sh b/scripts/build.sh index 5d9eacdf7..367697ea9 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -54,7 +54,7 @@ IFS=$OLDIFS # Copy our OS/Arch to the bin/ directory echo "==> Copying binaries for this platform..." -DEV_PLATFORM="./pkg/${GOOS}_${GOARCH}" +DEV_PLATFORM="./pkg/$(go env GOOS)_$(go env GOARCH)" for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do cp ${F} bin/ cp ${F} ${MAIN_GOPATH}/bin/