Get rid of non-existing find command
This commit is contained in:
parent
5c1a77cf66
commit
d56dbcf300
@ -2065,8 +2065,14 @@ renewable() {
|
|||||||
|
|
||||||
in_dir="$EASYRSA_PKI"
|
in_dir="$EASYRSA_PKI"
|
||||||
if [ $# -eq 0 ] ; then
|
if [ $# -eq 0 ] ; then
|
||||||
candidates=$(find "${in_dir}"/issued/ \
|
awkscript='
|
||||||
| sort | sed -e 's|^.*/||;s|.crt$||p;d' )
|
BEGIN { FS = "\t" };
|
||||||
|
$1 ~ '/V/' {
|
||||||
|
gsub(".*/CN=", "", $6);
|
||||||
|
gsub("[^-0-9a-zA-Z.].*", "", $6);
|
||||||
|
print $6;
|
||||||
|
}'
|
||||||
|
candidates=$(awk "$awkscript" ${in_dir}/index.txt)
|
||||||
else
|
else
|
||||||
candidates=$*
|
candidates=$*
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user