diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-08-20 09:49:46 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-08-20 09:49:46 +0300 |
commit | 93f786c6fdb0143c9a02502855487c01799a55b1 (patch) | |
tree | cfb19eb855cb5b9f76d6c5236430e39aeb111aef | |
parent | e4f77de0b797462849c5c6c8639c6071aeceb385 (diff) | |
download | bash-completion-93f786c6fdb0143c9a02502855487c01799a55b1.tar.gz |
ipsec: Cosmetic tweaks.
-rw-r--r-- | completions/ipsec | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/completions/ipsec b/completions/ipsec index dd757963..677e1e0e 100644 --- a/completions/ipsec +++ b/completions/ipsec @@ -7,11 +7,10 @@ have ipsec || return # Reads a file from stdin in the ipsec.conf(5) format. _ipsec_connections() { - COMPREPLY=() local keyword name while read -r keyword name; do if [[ $keyword = [#]* ]]; then continue; fi - [[ $keyword = 'conn' && $name != '%default' ]] && COMPREPLY+=("$name") + [[ $keyword == conn && $name != '%default' ]] && COMPREPLY+=( "$name" ) done COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) ) } |