Check for both default rsa and ed25519 ssh public key files

This commit is contained in:
Michael OBrien authored and GitHub committed 2023-04-05 15:34:57 -07:00
1 parent 5af750b469
commit 343a98560b
1 file changed
+1 -1
+1 -1
View File
@@ -257,7 +257,7 @@ 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" ]]; then if [[ ! -f "$DOKKU_ROOT/.ssh/id_rsa.pub" ]] && [[ ! -f "$DOKKU_ROOT/.ssh/id_ed25519.pub" ]] ; then
fn-git-auth-error fn-git-auth-error
fi fi