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

@@ -14,18 +14,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
if [[ ! -z "${1:-}" ]]; then
if [[ -n "${1:-}" ]]; then
export KUBE_GCE_ZONE="${1}"
fi
if [[ ! -z "${2:-}" ]]; then
if [[ -n "${2:-}" ]]; then
export MULTIZONE="${2}"
fi
if [[ ! -z "${3:-}" ]]; then
if [[ -n "${3:-}" ]]; then
export KUBE_DELETE_NODES="${3}"
fi
if [[ ! -z "${4:-}" ]]; then
if [[ -n "${4:-}" ]]; then
export KUBE_USE_EXISTING_MASTER="${4}"
fi