From b11d9bc3a0fe470d4acb959903b3f25b45975af0 Mon Sep 17 00:00:00 2001 From: josegonzalez Date: Tue, 11 Apr 2023 22:43:37 -0400 Subject: [PATCH] fix: correct shfmt issue and fallback to default case --- plugins/git/internal-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/git/internal-functions b/plugins/git/internal-functions index 2833af430..6a4235ca6 100755 --- a/plugins/git/internal-functions +++ b/plugins/git/internal-functions @@ -257,13 +257,13 @@ cmd-git-public-key() { local cmd="git:public-key" [[ "$1" == "$cmd" ]] && shift 1 - 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" elif [[ -f "$DOKKU_ROOT/.ssh/id_rsa.pub" ]]; then cat "$DOKKU_ROOT/.ssh/id_rsa.pub" - else - fn-git-auth-error fi + + fn-git-auth-error } cmd-git-report() {