Otherwise, when I enter an schroot session, there's no `ssh-add'
installed, so the `is the agent running' test /fails/, we delete the
socket, and then fail to start a replacement agent because `ssh-agent'
doesn't exist either. The result is that I've now lost my socket for
my (otherwise completely functional) agent, and there is sadness.
+## 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)}