diff options
Diffstat (limited to '.bash')
| -rw-r--r-- | .bash/aliases.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash/aliases.bash b/.bash/aliases.bash index 20274ad..3ba9f4b 100644 --- a/.bash/aliases.bash +++ b/.bash/aliases.bash @@ -98,7 +98,7 @@ function add-sshagent-init { ADDKEYS+=( "$KEY" ) fi done - ssh-add -q "${ADDKEYS[@]}" + [ "${#ADDKEYS[@]}" -gt 0 ] && ssh-add -q "${ADDKEYS[@]}" || true } alias sshmaster='ssh -O' # ----- FS ----- # |
