Sort find output and avoid duplicated /

Some find implementations will produce results like "dir//a" if given
"find dir/".
main
Lucas 9 months ago
parent 09e8f9650d
commit fb6454a300

@ -139,7 +139,8 @@ main_issue()
if [ ! -d "$PATH_PUBKEYS_DIR" ]; then
exit 0
fi
find "$PATH_PUBKEYS_DIR/" -type f -name '*.pub' ! -name '*-cert.pub' | {
find "$PATH_PUBKEYS_DIR" -type f -name '*.pub' ! -name '*-cert.pub' |
sort | {
ca_comment=$(get_ca_sk_comment_from_pk "$PATH_CA_PUB")
: ${ca_comment:=cassh}

Loading…
Cancel
Save