fix: correct shfmt issue and fallback to default case
This commit is contained in:
1 parent
2cac8718dd
commit
b11d9bc3a0
1 file changed
+3
-3
@@ -257,13 +257,13 @@ 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_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"
|
||||||
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"
|
||||||
else
|
|
||||||
fn-git-auth-error
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fn-git-auth-error
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd-git-report() {
|
cmd-git-report() {
|
||||||
|
|||||||
Reference in new issue
Block a user