fix test with array expansion

pull/6/head
Mike Danese 2015-07-23 21:04:47 -07:00
parent 0e10fac31e
commit c3fd33a18d
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ function create-kubeconfig() {
fi
"${kubectl}" config set-cluster "${CONTEXT}" "${cluster_args[@]}"
if [ -n "${user_args[@]:-}" ]; then
if [[ -n "${user_args[@]:-}" ]]; then
"${kubectl}" config set-credentials "${CONTEXT}" "${user_args[@]}"
fi
"${kubectl}" config set-context "${CONTEXT}" --cluster="${CONTEXT}" --user="${CONTEXT}"