Get rid of non-existing find command

This commit is contained in:
Anders Blomdell 2022-05-05 19:34:24 +02:00
parent 5c1a77cf66
commit d56dbcf300

View File

@ -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