Fix running mesos-docker configuration on Darwin

When following https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/mesos-docker.md guide on Mac it builds binaries under Darwin platform, therefore km/build.sh can't find km binary because it was only looking for Linux. This change makes it also look for Darwin binaries too.
This commit is contained in:
Oleg Anashkin 2015-11-04 11:37:08 -08:00
parent f64780d6eb
commit 1fcb0019b9

View File

@ -41,8 +41,11 @@ find-binary() {
km_path=$(find-binary km linux/amd64)
if [ -z "$km_path" ]; then
echo "Failed to find km binary" 1>&2
exit 1
km_path=$(find-binary km darwin/amd64)
if [ -z "$km_path" ]; then
echo "Failed to find km binary" 1>&2
exit 1
fi
fi
kube_bin_path=$(dirname ${km_path})
common_bin_path=$(cd ${script_dir}/../common/bin && pwd -P)