mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Merge pull request #640 from rafael/fix-realpath-issue-on-mac
Solve issue with realpath on Mac OS X.
This commit is contained in:
commit
d5a3e8d7cc
@ -26,8 +26,7 @@ set -e
|
|||||||
SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd)
|
SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd)
|
||||||
|
|
||||||
source $SCRIPT_DIR/config.sh
|
source $SCRIPT_DIR/config.sh
|
||||||
|
KUBE_REPO_ROOT="$(cd "$(dirname "$0")/../" && pwd -P)"
|
||||||
KUBE_REPO_ROOT="$(realpath "$(dirname $0)/..")"
|
|
||||||
|
|
||||||
source "${KUBE_REPO_ROOT}/cluster/kube-env.sh"
|
source "${KUBE_REPO_ROOT}/cluster/kube-env.sh"
|
||||||
source $(dirname ${BASH_SOURCE})/../cluster/${KUBERNETES_PROVIDER}/${KUBE_CONFIG_FILE-"config-default.sh"}
|
source $(dirname ${BASH_SOURCE})/../cluster/${KUBERNETES_PROVIDER}/${KUBE_CONFIG_FILE-"config-default.sh"}
|
||||||
|
Loading…
Reference in New Issue
Block a user