chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/gnus.el: Read active file unconditionally.
[profile]
/
bin
/
start-ssh-agent
diff --git
a/bin/start-ssh-agent
b/bin/start-ssh-agent
index d5389d8c03861072ea5018989b41970d8cdf5271..88fd657fcd22c039769e531677aaf85108e50b61 100755
(executable)
--- a/
bin/start-ssh-agent
+++ b/
bin/start-ssh-agent
@@
-29,6
+29,12
@@
case $chosen,$style in
;;
esac
;;
esac
+## Check that this stands a chance of working.
+if ! type >/dev/null 2>&1 ssh-agent || ! type >/dev/null >&1 ssh-add; then
+ echo >&2 "$0: ssh not installed; chickening out"
+ exit 1
+fi
+
## Some useful variables.
hostname=${HOST-$(hostname)}
user=${USER-${LOGNAME-$(id -un)}} uid=${UID-$(id -u)}
## Some useful variables.
hostname=${HOST-$(hostname)}
user=${USER-${LOGNAME-$(id -un)}} uid=${UID-$(id -u)}