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
1 changed files with 2 additions and 1 deletions
3
cassh.sh
3
cassh.sh
|
@ -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…
Add table
Add a link
Reference in a new issue