Skip to content

Commit

Permalink
fix(comp): tail cannot open +2 for reading
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Lin PIAT <fpiat@klabs.be>
  • Loading branch information
finkr committed Dec 28, 2019
1 parent 1ff8272 commit 2eab781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/helm/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ __helm_override_flags_to_kubectl_flags()
__helm_get_repos()
{
eval $(__helm_binary_name) repo list 2>/dev/null | \tail +2 | \cut -f1
eval $(__helm_binary_name) repo list 2>/dev/null | \tail -n +2 | \cut -f1
}
__helm_get_contexts()
Expand Down Expand Up @@ -236,7 +236,7 @@ __helm_list_plugins()
__helm_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}"
local out
# Use eval in case helm_binary_name contains a variable (e.g., $HOME/bin/h3)
if out=$(eval $(__helm_binary_name) plugin list 2>/dev/null | \tail +2 | \cut -f1); then
if out=$(eval $(__helm_binary_name) plugin list 2>/dev/null | \tail -n +2 | \cut -f1); then
COMPREPLY=( $( compgen -W "${out[*]}" -- "$cur" ) )
fi
}
Expand Down

0 comments on commit 2eab781

Please sign in to comment.