From e0a119c662dbc84a8a44367c2a275da114aa901b Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Fri, 20 Sep 2019 19:48:08 -0400 Subject: [PATCH] fix(completion): Redirect stderr must be before pipes Signed-off-by: Marc Khouzam --- cmd/helm/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/root.go b/cmd/helm/root.go index 30b452fcb..69981ca01 100644 --- a/cmd/helm/root.go +++ b/cmd/helm/root.go @@ -103,7 +103,7 @@ __helm_list_repos() { __helm_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local out - if out=$(helm repo list | tail +2 | cut -f1 2>/dev/null); then + if out=$(helm repo list 2>/dev/null | tail +2 | cut -f1); then COMPREPLY=( $( compgen -W "${out[*]}" -- "$cur" ) ) fi } @@ -111,7 +111,7 @@ __helm_list_plugins() { __helm_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" local out - if out=$(helm plugin list | tail +2 | cut -f1 2>/dev/null); then + if out=$(helm plugin list 2>/dev/null | tail +2 | cut -f1); then COMPREPLY=( $( compgen -W "${out[*]}" -- "$cur" ) ) fi }