fix: return after showing the contents of the public key file
This commit is contained in:
@@ -259,8 +259,10 @@ cmd-git-public-key() {
|
|||||||
|
|
||||||
if [[ -f "$DOKKU_ROOT/.ssh/id_ed25519.pub" ]]; then
|
if [[ -f "$DOKKU_ROOT/.ssh/id_ed25519.pub" ]]; then
|
||||||
cat "$DOKKU_ROOT/.ssh/id_ed25519.pub"
|
cat "$DOKKU_ROOT/.ssh/id_ed25519.pub"
|
||||||
|
return
|
||||||
elif [[ -f "$DOKKU_ROOT/.ssh/id_rsa.pub" ]]; then
|
elif [[ -f "$DOKKU_ROOT/.ssh/id_rsa.pub" ]]; then
|
||||||
cat "$DOKKU_ROOT/.ssh/id_rsa.pub"
|
cat "$DOKKU_ROOT/.ssh/id_rsa.pub"
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fn-git-auth-error
|
fn-git-auth-error
|
||||||
|
|||||||
Reference in New Issue
Block a user