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... " echo -n "Starting SparkleShare... "
mkdir -p /tmp/sparkleshare/ mkdir -p /tmp/sparkleshare/
if [ -n "$SSH_AGENT_PID" ]; then ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
else
ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
fi
echo $! > ${pidfile} echo $! > ${pidfile}
echo "Done." echo "Done."
} }