From 96187c10f09ec18d839a30f17fa550bad49142cf Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Sat, 12 Jul 2014 21:46:28 -0700 Subject: [PATCH] Fix build script for os x. --- hack/config-go.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hack/config-go.sh b/hack/config-go.sh index 3043fc3c19111..77682275639d5 100755 --- a/hack/config-go.sh +++ b/hack/config-go.sh @@ -37,8 +37,13 @@ if [ "${TRAVIS}" != "true" ]; then fi fi -KUBE_REPO_REL_ROOT="$(dirname ${BASH_SOURCE:-$0})/.." -KUBE_REPO_ROOT="$(readlink -f ${KUBE_REPO_REL_ROOT})" +if [[ "$OSTYPE" == *darwin* ]]; then + KUBE_REPO_ROOT="${PWD}" +else + KUBE_REPO_REL_ROOT="$(dirname ${BASH_SOURCE:-$0})/.." + KUBE_REPO_ROOT="$(readlink -f ${KUBE_REPO_REL_ROOT})" +fi + KUBE_TARGET="${KUBE_REPO_ROOT}/output/go" mkdir -p "${KUBE_TARGET}"