Sort find output and avoid duplicated /
Some find implementations will produce results like "dir//a" if given "find dir/".
This commit is contained in:
parent
09e8f9650d
commit
fb6454a300
3
cassh.sh
3
cassh.sh
@ -139,7 +139,8 @@ main_issue()
|
|||||||
if [ ! -d "$PATH_PUBKEYS_DIR" ]; then
|
if [ ! -d "$PATH_PUBKEYS_DIR" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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=$(get_ca_sk_comment_from_pk "$PATH_CA_PUB")
|
||||||
: ${ca_comment:=cassh}
|
: ${ca_comment:=cassh}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user