git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/aliases.bash
diff options
context:
space:
mode:
authormail_redacted_for_web 2024-05-25 12:51:35 +0200
committermail_redacted_for_web 2024-05-25 12:51:35 +0200
commitfcab6b04a9852d6ab44d1a0a834715a2be34dc7f (patch)
tree723c499ca71e14f84e6dfef692bd63e80604aee6 /.bash/aliases.bash
parentb4d5f7b06a9b68d069922f8515942fef7bca9a92 (diff)
downloaddotfiles-fcab6b04a9852d6ab44d1a0a834715a2be34dc7f.tar.bz2
return if reading the fingerprint failed
Diffstat (limited to '.bash/aliases.bash')
-rw-r--r--.bash/aliases.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash/aliases.bash b/.bash/aliases.bash
index 718e4d3..405f370 100644
--- a/.bash/aliases.bash
+++ b/.bash/aliases.bash
@@ -75,7 +75,7 @@ alias sshk='ssh -o PasswordAuthentication=yes -o PreferredAuthentications=keyboa
alias sshg="ssh-with-gpg"
function add-sshagent-init {
for KEY in "${SSHKEYS[@]}";do
- FFPRINT="$(ssh-keygen -Esha256 -lf "$KEY")"
+ FFPRINT="$(ssh-keygen -Esha256 -lf "$KEY")" || return 1
if ! ssh-add -l 2>/dev/null | grep "$FFPRINT" >/dev/null; then
ssh-add -q "$KEY"
fi