From 23e9c39a9618818c07e54378e2cca336b38c4c20 Mon Sep 17 00:00:00 2001 From: Albert Zhang Date: Sun, 13 Jul 2014 18:47:52 +0800 Subject: [PATCH] make build script works on os x if the current dir is not the kubernetes root --- hack/config-go.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/config-go.sh b/hack/config-go.sh index 77682275639..e25421b374a 100755 --- a/hack/config-go.sh +++ b/hack/config-go.sh @@ -38,7 +38,7 @@ if [ "${TRAVIS}" != "true" ]; then fi if [[ "$OSTYPE" == *darwin* ]]; then - KUBE_REPO_ROOT="${PWD}" + KUBE_REPO_ROOT="${PWD}/$(dirname ${BASH_SOURCE:-$0})/.." else KUBE_REPO_REL_ROOT="$(dirname ${BASH_SOURCE:-$0})/.." KUBE_REPO_ROOT="$(readlink -f ${KUBE_REPO_REL_ROOT})"