File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
_comp_cmd_openssl__compgen_sections ()
4
4
{
5
- local config i f
5
+ local config _i _file
6
6
7
7
# check if a specific configuration file is used
8
- for (( i = 2 ; i < cword; i ++ )) ; do
9
- if [[ ${words[i ]} == -c onfig ]]; then
10
- config=${words[i + 1]}
8
+ for (( _i = 2 ; _i < cword; _i ++ )) ; do
9
+ if [[ ${words[_i ]} == -c onfig ]]; then
10
+ config=${words[_i + 1]}
11
11
break
12
12
fi
13
13
done
14
14
15
15
# if no config given, check some usual default locations
16
16
if [[ ! $config ]]; then
17
- for f in /etc/ssl/openssl.cnf /etc/pki/tls/openssl.cnf \
17
+ for _file in /etc/ssl/openssl.cnf /etc/pki/tls/openssl.cnf \
18
18
/usr/share/ssl/openssl.cnf; do
19
- [[ -f $f ]] && config=$f && break
19
+ [[ -f $_file ]] && config=$_file && break
20
20
done
21
21
fi
22
22
23
23
[[ ! -f $config ]] && return
24
24
25
- _comp_compgen_split -- " $( awk ' /\[.*\]/ {print $2}' " $config " ) "
25
+ _comp_compgen -U config split -- " $( awk ' /\[.*\]/ {print $2}' " $config " ) "
26
26
}
27
27
28
28
_comp_cmd_openssl__compgen_digests ()
You can’t perform that action at this time.
0 commit comments