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 22
33_comp_cmd_openssl__compgen_sections ()
44{
5- local config i f
5+ local config _i _file
66
77 # 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]}
1111 break
1212 fi
1313 done
1414
1515 # if no config given, check some usual default locations
1616 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 \
1818 /usr/share/ssl/openssl.cnf; do
19- [[ -f $f ]] && config=$f && break
19+ [[ -f $_file ]] && config=$_file && break
2020 done
2121 fi
2222
2323 [[ ! -f $config ]] && return
2424
25- _comp_compgen_split -- " $( awk ' /\[.*\]/ {print $2}' " $config " ) "
25+ _comp_compgen -U config split -- " $( awk ' /\[.*\]/ {print $2}' " $config " ) "
2626}
2727
2828_comp_cmd_openssl__compgen_digests ()
You can’t perform that action at this time.
0 commit comments