feat: delegate authorized_keys file validation to sshcommand

Rather than try and validate this out of band, depend on sshcommand for performing any such checks on the file. There isn't any need for dokku to duplicate this when listing the contents of the file.
This commit is contained in:
Jose Diaz-Gonzalez
2025-02-22 01:42:01 -05:00
parent ff036770de
commit ec0868baf6

View File

@@ -23,7 +23,6 @@ cmd-ssh-keys-list() {
FORMAT=""
fi
verify_ssh_key_file
if [[ "$FORMAT" == "json" ]]; then
if [[ -n "$NAME" ]]; then
sshcommand list dokku "" "$FORMAT" | jq -cM "[.[] | select(.name == \"$NAME\")]"