Merge pull request #441 from zhgwenming/master

make build script works on os x if the current dir is not the kubernetes root
This commit is contained in:
brendandburns 2014-07-13 20:30:24 -07:00
commit 19976c47ed

View File

@ -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})"