make more of the shell pass lints

This commit is contained in:
xichengliudui
2019-02-18 22:50:03 -05:00
parent 197941a6d9
commit dd7acdcd55
8 changed files with 24 additions and 31 deletions

View File

@@ -18,10 +18,10 @@ set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
: ${KUBECTL:=${KUBE_ROOT}/cluster/kubectl.sh}
: ${KUBE_CONFIG_FILE:="config-test.sh"}
: "${KUBECTL:=${KUBE_ROOT}/cluster/kubectl.sh}"
: "${KUBE_CONFIG_FILE:="config-test.sh"}"
export KUBECTL KUBE_CONFIG_FILE