summaryrefslogtreecommitdiffstats
path: root/scripts/bash_completion
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-10-28 14:56:28 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-10-28 15:48:05 +0100
commit74688b353d0643fba23f8a51fbca4270fdd1d5af (patch)
treed822a05d902788626dc339cf67f4534ef2c856d5 /scripts/bash_completion
parent6f38e8c6ea0d28357351bff43c64c9e208b96bcb (diff)
downloadptxdist-74688b353d0643fba23f8a51fbca4270fdd1d5af.tar.gz
ptxdist-74688b353d0643fba23f8a51fbca4270fdd1d5af.tar.xz
bash_completion: no need for pushd/popd in a subshell
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/bash_completion')
-rw-r--r--scripts/bash_completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bash_completion b/scripts/bash_completion
index 8f5925126..7d367d3b8 100644
--- a/scripts/bash_completion
+++ b/scripts/bash_completion
@@ -117,7 +117,7 @@ _ptxdist_completion()
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 ) )
+ COMPREPLY=( $( compgen -W "${_ptxdist_completion_opts[*]} $( cd $($_ptxdist_cmd print PTXDIST_PLATFORMDIR)/state; ls *.+(get|extract|prepare|compile|install|targetinstall) )" -- $cur ) )
;;
newpackage)
if [ ${#_ptxdist_completion_newpkg[@]} -eq 0 ]; then