ipsec: Cosmetic tweaks.
This commit is contained in:
parent
e4f77de0b7
commit
93f786c6fd
@ -7,11 +7,10 @@ have ipsec || return
|
|||||||
# Reads a file from stdin in the ipsec.conf(5) format.
|
# Reads a file from stdin in the ipsec.conf(5) format.
|
||||||
_ipsec_connections()
|
_ipsec_connections()
|
||||||
{
|
{
|
||||||
COMPREPLY=()
|
|
||||||
local keyword name
|
local keyword name
|
||||||
while read -r keyword name; do
|
while read -r keyword name; do
|
||||||
if [[ $keyword = [#]* ]]; then continue; fi
|
if [[ $keyword = [#]* ]]; then continue; fi
|
||||||
[[ $keyword = 'conn' && $name != '%default' ]] && COMPREPLY+=("$name")
|
[[ $keyword == conn && $name != '%default' ]] && COMPREPLY+=( "$name" )
|
||||||
done
|
done
|
||||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user