diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-10-26 10:25:15 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-10-28 15:48:05 +0100 |
commit | 6f38e8c6ea0d28357351bff43c64c9e208b96bcb (patch) | |
tree | d2f64d2bfeba60e1d6322850cee92d00e48daf61 /scripts/bash_completion | |
parent | 4a35b0641f9236a40abcb6b6540a420b819cb012 (diff) | |
download | ptxdist-6f38e8c6ea0d28357351bff43c64c9e208b96bcb.tar.gz ptxdist-6f38e8c6ea0d28357351bff43c64c9e208b96bcb.tar.xz |
bash_completion: suppress errors when printing PTX_PACKAGES_SELECTED
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/bash_completion')
-rw-r--r-- | scripts/bash_completion | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bash_completion b/scripts/bash_completion index 627898f3b..8f5925126 100644 --- a/scripts/bash_completion +++ b/scripts/bash_completion @@ -110,11 +110,11 @@ _ptxdist_completion() compgen -f /dummy >/dev/null [ ${#args[@]} -lt 1 ] && _filedir ;; - get|extract|prepare|compile|install|targetinstall|tags) - COMPREPLY=( $( compgen -W "${_ptxdist_completion_opts[*]} $( $_ptxdist_cmd print PTX_PACKAGES_SELECTED )" -- $cur ) ) - ;; clean) - COMPREPLY=( $( compgen -W "${_ptxdist_completion_opts[*]} $( $_ptxdist_cmd print PTX_PACKAGES_SELECTED ) root" -- $cur ) ) + COMPREPLY=( root ) + ;& + get|extract|prepare|compile|install|targetinstall|tags) + COMPREPLY+=( $( compgen -W "${_ptxdist_completion_opts[*]} $( $_ptxdist_cmd print PTX_PACKAGES_SELECTED 2> /dev/null)" -- $cur ) ) ;; drop) COMPREPLY=( $( compgen -W "${_ptxdist_completion_opts[*]} $( pushd $($_ptxdist_cmd print PTXDIST_PLATFORMDIR)/state >/dev/null; ls +(*.get|*.extract|*.prepare|*.compile|*.install|*.targetinstall); popd >/dev/null )" -- $cur ) ) |