diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-04-05 15:05:36 -0700 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-04-05 15:05:36 -0700 |
commit | c0724b8e7aefd9ced1740a970941928f5b168b2b (patch) | |
tree | ca6283365dafa6babff62dd2e2792853c1b5c816 /src/share/m/subkey_to_ssh_agent | |
parent | 1687f57fcfb41453539313d66b8b01bd073c4577 (diff) |
some small compatibility changes:
- fix file_hash function to use md5 or md5sum, for Darwin
compatibility
- use build-in 'type' instead of 'which', which for some reason
doesn't behave on Darwin
- clean up some redirection calls.
Diffstat (limited to 'src/share/m/subkey_to_ssh_agent')
-rw-r--r-- | src/share/m/subkey_to_ssh_agent | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/m/subkey_to_ssh_agent b/src/share/m/subkey_to_ssh_agent index aa647a6..edc177b 100644 --- a/src/share/m/subkey_to_ssh_agent +++ b/src/share/m/subkey_to_ssh_agent @@ -27,7 +27,7 @@ subkey_to_ssh_agent() { local kname # if there's no agent running, don't bother: - if [ -z "$SSH_AUTH_SOCK" ] || ! which ssh-add >/dev/null ; then + if [ -z "$SSH_AUTH_SOCK" ] || ! type ssh-add >/dev/null ; then failure "No ssh-agent available." fi |