summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-08-20 09:49:46 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-08-20 09:49:46 +0300
commit93f786c6fdb0143c9a02502855487c01799a55b1 (patch)
treecfb19eb855cb5b9f76d6c5236430e39aeb111aef
parente4f77de0b797462849c5c6c8639c6071aeceb385 (diff)
downloadbash-completion-93f786c6fdb0143c9a02502855487c01799a55b1.tar.gz
ipsec: Cosmetic tweaks.
-rw-r--r--completions/ipsec3
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" ) )
}