Always start with a new ssh-agent.

This commit is contained in:
Hylke Bons 2011-03-16 18:08:56 -07:00
parent cfe930c979
commit b0bd5ff50f

View file

@ -16,11 +16,7 @@ start() {
echo -n "Starting SparkleShare... "
mkdir -p /tmp/sparkleshare/
if [ -n "$SSH_AGENT_PID" ]; then
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
else
ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
fi
ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
echo $! > ${pidfile}
echo "Done."
}