From 4a29be7b502f1e3223f150d3f4408184fa6ce6e6 Mon Sep 17 00:00:00 2001 From: Adam Ward Date: Mon, 16 May 2016 10:00:44 +1000 Subject: [PATCH] Don't assume dev platform was built --- scripts/build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index b7d6856f1..fbf4454a0 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -69,10 +69,12 @@ 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 - cp ${F} bin/ - cp ${F} ${MAIN_GOPATH}/bin/ -done +if [[ -d "${DEV_PLATFORM}" ]]; then + for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do + cp ${F} bin/ + cp ${F} ${MAIN_GOPATH}/bin/ + done +fi if [ "${TF_DEV}x" = "x" ]; then # Zip and copy to the dist dir