From 1b191a51834c3a862c38f09d571f5025dc5a6b5f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 28 Aug 2014 16:47:14 -0700 Subject: [PATCH] scripts: fix dev build --- scripts/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 3bc72d42e2..e386f7497f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -28,6 +28,12 @@ echo "==> Removing old directory..." rm -f bin/* rm -rf pkg/* +# If its dev mode, only build for ourself +if [ "${TF_DEV}x" != "x" ]; then + XC_OS=$(go env GOOS) + XC_ARCH=$(go env GOARCH) +fi + # Build! echo "==> Building..." gox \