From 87613eee87ebcca799f94864ee2ae3b5c56b1859 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Mon, 4 May 2015 14:50:17 -0400 Subject: [PATCH] Minor bash update found by shellcheck.net --- contrib/completions/bash/kubectl | 4 ++-- pkg/kubectl/cmd/cmd.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/completions/bash/kubectl b/contrib/completions/bash/kubectl index e3a5cf7142b..89e96747707 100644 --- a/contrib/completions/bash/kubectl +++ b/contrib/completions/bash/kubectl @@ -166,7 +166,7 @@ __kubectl_get_resource() if [[ ${#nouns[@]} -eq 0 ]]; then return 1 fi - __kubectl_parse_get ${nouns[${#nouns[@]} -1]} + __kubectl_parse_get "${nouns[${#nouns[@]} -1]}" if [[ $? -eq 0 ]]; then return 0 fi @@ -177,7 +177,7 @@ __kubectl_get_containers() { local template template="{{ range .desiredState.manifest.containers }}{{ .name }} {{ end }}" - __debug ${FUNCNAME} "nouns are ${nouns[@]}" + __debug "${FUNCNAME} nouns are ${nouns[*]}" local len="${#nouns[@]}" if [[ ${len} -ne 1 ]]; then diff --git a/pkg/kubectl/cmd/cmd.go b/pkg/kubectl/cmd/cmd.go index 835b525963b..6f4ac8d55e2 100644 --- a/pkg/kubectl/cmd/cmd.go +++ b/pkg/kubectl/cmd/cmd.go @@ -44,7 +44,7 @@ __kubectl_get_resource() if [[ ${#nouns[@]} -eq 0 ]]; then return 1 fi - __kubectl_parse_get ${nouns[${#nouns[@]} -1]} + __kubectl_parse_get "${nouns[${#nouns[@]} -1]}" if [[ $? -eq 0 ]]; then return 0 fi @@ -55,7 +55,7 @@ __kubectl_get_containers() { local template template="{{ range .desiredState.manifest.containers }}{{ .name }} {{ end }}" - __debug ${FUNCNAME} "nouns are ${nouns[@]}" + __debug "${FUNCNAME} nouns are ${nouns[*]}" local len="${#nouns[@]}" if [[ ${len} -ne 1 ]]; then