mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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
This commit is contained in:
parent
6b5690a259
commit
b13f5a8f62
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user