diff options
Diffstat (limited to 'completions/ipsec')
-rw-r--r-- | completions/ipsec | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/completions/ipsec b/completions/ipsec index b1161b0a..357d5055 100644 --- a/completions/ipsec +++ b/completions/ipsec @@ -7,7 +7,7 @@ _ipsec_connections() { local keyword name while read -r keyword name; do - if [[ $keyword = [#]* ]]; then continue; fi + if [[ $keyword == [#]* ]]; then continue; fi [[ $keyword == conn && $name != '%default' ]] && COMPREPLY+=( "$name" ) done COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) ) @@ -22,7 +22,7 @@ _ipsec_freeswan() COMPREPLY=( $( compgen -W 'auto barf eroute klipsdebug look manual pluto ranbits rsasigkey setup showdefaults showhostkey spi spigrp tncfg whack' -- "$cur" ) ) - return 0 + return fi case ${words[1]} in @@ -45,8 +45,6 @@ _ipsec_freeswan() *) ;; esac - - return 0 } _ipsec_strongswan() @@ -64,7 +62,7 @@ _ipsec_strongswan() scencrypt scepclient secrets start starter status statusall stop stroke unroute uci up update version whack --confdir --copyright --directory --help --version --versioncode' -- "$cur" ) ) - return 0 + return fi case ${words[1]} in @@ -91,8 +89,6 @@ _ipsec_strongswan() *) ;; esac - - return 0 } case "$( ipsec --version 2>/dev/null )" in @@ -104,4 +100,4 @@ case "$( ipsec --version 2>/dev/null )" in ;; esac -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |