Improve ed25519 + rsa ssh key search and presentation

This commit is contained in:
Michael OBrien authored and GitHub committed 2023-04-05 18:52:36 -07:00
1 parent 343a98560b
commit 2cac8718dd
1 file changed
+5 -3
+5 -3
View File
@@ -257,11 +257,13 @@ cmd-git-public-key() {
local cmd="git:public-key" local cmd="git:public-key"
[[ "$1" == "$cmd" ]] && shift 1 [[ "$1" == "$cmd" ]] && shift 1
if [[ ! -f "$DOKKU_ROOT/.ssh/id_rsa.pub" ]] && [[ ! -f "$DOKKU_ROOT/.ssh/id_ed25519.pub" ]] ; then if [[ -f "$DOKKU_ROOT/.ssh/id_ed25519.pub" ]] ; then
cat "$DOKKU_ROOT/.ssh/id_ed25519.pub"
elif [[ -f "$DOKKU_ROOT/.ssh/id_rsa.pub" ]]; then
cat "$DOKKU_ROOT/.ssh/id_rsa.pub"
else
fn-git-auth-error fn-git-auth-error
fi fi
cat "$DOKKU_ROOT/.ssh/id_rsa.pub"
} }
cmd-git-report() { cmd-git-report() {