From b13f5a8f62017d1b6ab885d646de4a974accb176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Chac=C3=B3n?= Date: Sat, 26 Jul 2014 18:15:44 -0700 Subject: [PATCH] Solve issue with realpath on Mac OS X. * realpath doesn't work on Mac OS systems. I found the following workaround that should work in any distro. For more references see the following: http://serverfault.com/questions/40144/how-can-i-retrieve-the-absolute-filename-in-a-shell-script-on-mac-os-x --- release/release.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/release/release.sh b/release/release.sh index da4e5bda06f..dad62db2104 100755 --- a/release/release.sh +++ b/release/release.sh @@ -26,8 +26,7 @@ set -e SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd) source $SCRIPT_DIR/config.sh - -KUBE_REPO_ROOT="$(realpath "$(dirname $0)/..")" +KUBE_REPO_ROOT="$(cd "$(dirname "$0")/../" && pwd -P)" source "${KUBE_REPO_ROOT}/cluster/kube-env.sh" source $(dirname ${BASH_SOURCE})/../cluster/${KUBERNETES_PROVIDER}/${KUBE_CONFIG_FILE-"config-default.sh"}