Skip to content

Commit

Permalink
Fix build script for os x.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Jul 13, 2014
1 parent f84a948 commit 96187c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hack/config-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 96187c1

Please sign in to comment.