fix: return after showing the contents of the public key file

This commit is contained in:
josegonzalez authored and GitHub committed 2023-04-27 22:54:14 -04:00
1 parent b11d9bc3a0
commit ca04c2dc48
1 file changed
+2
+2
View File
@@ -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