git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash
diff options
context:
space:
mode:
Diffstat (limited to '.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