Commit 23e9c39a authored by Albert Zhang's avatar Albert Zhang

make build script works on os x if the current dir is not the kubernetes root

parent 20226d7c
...@@ -38,7 +38,7 @@ if [ "${TRAVIS}" != "true" ]; then ...@@ -38,7 +38,7 @@ if [ "${TRAVIS}" != "true" ]; then
fi fi
if [[ "$OSTYPE" == *darwin* ]]; then if [[ "$OSTYPE" == *darwin* ]]; then
KUBE_REPO_ROOT="${PWD}" KUBE_REPO_ROOT="${PWD}/$(dirname ${BASH_SOURCE:-$0})/.."
else else
KUBE_REPO_REL_ROOT="$(dirname ${BASH_SOURCE:-$0})/.." KUBE_REPO_REL_ROOT="$(dirname ${BASH_SOURCE:-$0})/.."
KUBE_REPO_ROOT="$(readlink -f ${KUBE_REPO_REL_ROOT})" KUBE_REPO_ROOT="$(readlink -f ${KUBE_REPO_REL_ROOT})"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment