drop last piece of openssl completion
This commit is contained in:
parent
35302e458f
commit
0d12edb64b
@ -3468,31 +3468,6 @@ _mysqladmin()
|
|||||||
} &&
|
} &&
|
||||||
complete -F _mysqladmin mysqladmin
|
complete -F _mysqladmin mysqladmin
|
||||||
|
|
||||||
# openssl(1) completion
|
|
||||||
#
|
|
||||||
have openssl && {
|
|
||||||
_openssl_sections()
|
|
||||||
{
|
|
||||||
local config f
|
|
||||||
|
|
||||||
for (( i=2; i < COMP_CWORD; i++ )); do
|
|
||||||
if [[ "${COMP_WORDS[i]}" == -config ]]; then
|
|
||||||
config=${COMP_WORDS[i+1]}
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ -z "$config" ]; then
|
|
||||||
for f in /etc/ssl/openssl.cnf /etc/pki/tls/openssl.cnf \
|
|
||||||
/usr/share/ssl/openssl.cnf; do
|
|
||||||
[ -f $f ] && config=$f && break
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
[ ! -f "$config" ] && return 0
|
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W "$( awk '/\[.*\]/ {print $2}' $config )" \
|
|
||||||
-- $cur ) )
|
|
||||||
}
|
|
||||||
|
|
||||||
_longopt()
|
_longopt()
|
||||||
{
|
{
|
||||||
local cur prev
|
local cur prev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user