Merge pull request #151 from pdf/master

Fix startup with existing ssh agents
This commit is contained in:
Hylke Bons 2011-06-25 14:53:31 -07:00
commit ecaba666a4

View file

@ -19,7 +19,11 @@ start() {
fi
echo -n "Starting SparkleShare... "
ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
if [ -n "${SSH_AGENT_PID}" -o -n "${SSH_AUTH_SOCK}" ] ; then
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
else
ssh-agent mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2 &
fi
( umask 066; echo $! > ${pidfile} )
echo "Done."
}