summaryrefslogtreecommitdiffstats
path: root/scripts/bash_completion
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-10-04 11:42:13 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-10-04 11:42:15 +0200
commit0aac5090c147668c31c65dae6876ac3fcfb759b7 (patch)
treeaa450c8a00960d0a5f801e266ce578d01d058cb6 /scripts/bash_completion
parent1533cab7615c5dfc4dafbeaf70b6bbe1455609b5 (diff)
downloadptxdist-0aac5090c147668c31c65dae6876ac3fcfb759b7.tar.gz
ptxdist-0aac5090c147668c31c65dae6876ac3fcfb759b7.tar.xz
bash_completion: simplify
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/bash_completion')
-rw-r--r--scripts/bash_completion6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/bash_completion b/scripts/bash_completion
index 2a51276d0..bead4031a 100644
--- a/scripts/bash_completion
+++ b/scripts/bash_completion
@@ -10,11 +10,7 @@ _ptxdist_completion()
{
local cur cmds opts _ptxdist_cmd
- if [ "${COMP_WORDS[0]}" = "ptxdist" ]; then
- _ptxdist_cmd="ptxdist"
- else
- _ptxdist_cmd="${COMP_WORDS[0]}"
- fi
+ _ptxdist_cmd="${COMP_WORDS[0]}"
COMPREPLY=()
cur=( $(_get_cword) )