fix some shellcheck failures of cluster/*.sh
This commit is contained in:
		| @@ -18,7 +18,7 @@ set -o errexit | ||||
| set -o nounset | ||||
| set -o pipefail | ||||
|  | ||||
| KUBE_ROOT=${KUBE_ROOT:-$(dirname "${BASH_SOURCE}")/..} | ||||
| KUBE_ROOT=${KUBE_ROOT:-$(dirname "${BASH_SOURCE[0]}")/..} | ||||
|  | ||||
| # Detect the OS name/arch so that we can find our binary | ||||
| case "$(uname -s)" in | ||||
|   | ||||
| @@ -20,7 +20,7 @@ set -o errexit | ||||
| set -o nounset | ||||
| set -o pipefail | ||||
|  | ||||
| KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd) | ||||
| KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd) | ||||
|  | ||||
| DEFAULT_KUBECONFIG="${HOME:-.}/.kube/config" | ||||
|  | ||||
|   | ||||
| @@ -63,7 +63,7 @@ readonly max_dump_processes=25 | ||||
|  | ||||
| # TODO: Get rid of all the sourcing of bash dependencies eventually. | ||||
| function setup() { | ||||
|   KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../.. | ||||
|   KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../.. | ||||
|   if [[ -z "${use_custom_instance_list}" ]]; then | ||||
|     : ${KUBE_CONFIG_FILE:="config-test.sh"} | ||||
|     echo "Sourcing kube-util.sh" | ||||
|   | ||||
| @@ -18,7 +18,7 @@ | ||||
| # pre-existing Kubernetes master. See test/kubemark/pre-existing/README.md | ||||
| # for me details on using a pre-existing provider. | ||||
|  | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../.. | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../.. | ||||
|  | ||||
| source "${KUBE_ROOT}/cluster/common.sh" | ||||
| source "${KUBE_ROOT}/hack/lib/util.sh" | ||||
|   | ||||
| @@ -21,7 +21,7 @@ set -o errexit | ||||
| set -o nounset | ||||
| set -o pipefail | ||||
|  | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | ||||
| source "${KUBE_ROOT}/cluster/kube-util.sh" | ||||
|  | ||||
| echo "Testing cluster with provider: ${KUBERNETES_PROVIDER}" 1>&2 | ||||
|   | ||||
| @@ -24,7 +24,7 @@ set -o errexit | ||||
| set -o nounset | ||||
| set -o pipefail | ||||
|  | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | ||||
| KUBE_CONFIG_FILE="config-default.sh" | ||||
|  | ||||
| ${KUBE_ROOT}/hack/ginkgo-e2e.sh --ginkgo.focus=Networking | ||||
|   | ||||
| @@ -23,7 +23,7 @@ set -o errexit | ||||
| set -o nounset | ||||
| set -o pipefail | ||||
|  | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | ||||
|  | ||||
| TEST_ARGS="$@" | ||||
|  | ||||
|   | ||||
| @@ -24,7 +24,7 @@ set -o errexit | ||||
| set -o nounset | ||||
| set -o pipefail | ||||
|  | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. | ||||
| KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | ||||
|  | ||||
| if [ -f "${KUBE_ROOT}/cluster/env.sh" ]; then | ||||
|   source "${KUBE_ROOT}/cluster/env.sh" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SataQiu
					SataQiu