Check for both default rsa and ed25519 ssh public key files

This commit is contained in:
Michael OBrien
2023-04-05 15:34:57 -07:00
committed by GitHub
parent 5af750b469
commit 343a98560b

View File

@@ -257,7 +257,7 @@ cmd-git-public-key() {
local cmd="git:public-key"
[[ "$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
fi