diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-26 20:37:14 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-26 20:37:14 -0200 |
commit | 2ffe3f07bdab10abd2c2a6b98529c95ac18a8b6a (patch) | |
tree | b3e6932bebd33e70da1e75044cdf3d7451ac168b | |
parent | 32ab57ed1e4412d2eba8200d9d1b45d6d78d613a (diff) | |
download | utils-ssh-2ffe3f07bdab10abd2c2a6b98529c95ac18a8b6a.tar.gz utils-ssh-2ffe3f07bdab10abd2c2a6b98529c95ac18a8b6a.tar.bz2 |
Check for monkeysphere availability
-rwxr-xr-x | ssh-agent-loadkeys | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ssh-agent-loadkeys b/ssh-agent-loadkeys index 5687ef6..608f73b 100755 --- a/ssh-agent-loadkeys +++ b/ssh-agent-loadkeys @@ -4,8 +4,10 @@ # Uses monkeysphere and keychain # -if ! ssh-add -l &> /dev/null; then - monkeysphere subkey-to-ssh-agent +if [ -x '/usr/bin/monkeysphere' ]; then + if ! ssh-add -l &> /dev/null; then + monkeysphere subkey-to-ssh-agent + fi fi if [ -x '/usr/bin/keychain' ]; then |