Merge pull request #5786 from obrienmd/add-ed25519-pubkey-check
Detect id_ed25519.pub in git:public-key command
This commit is contained in:
1 file changed
+7
-3
@@ -257,11 +257,15 @@ 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_ed25519.pub" ]]; then
|
||||||
fn-git-auth-error
|
cat "$DOKKU_ROOT/.ssh/id_ed25519.pub"
|
||||||
|
return
|
||||||
|
elif [[ -f "$DOKKU_ROOT/.ssh/id_rsa.pub" ]]; then
|
||||||
|
cat "$DOKKU_ROOT/.ssh/id_rsa.pub"
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat "$DOKKU_ROOT/.ssh/id_rsa.pub"
|
fn-git-auth-error
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd-git-report() {
|
cmd-git-report() {
|
||||||
|
|||||||
Reference in new issue
Block a user