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 \