blob: 5af417c968afc9fe14075a52c000648572557de5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env bash
if [[ $UID -eq 0 ]]; then
echo "SparkleShare can't be run as root. Things would go utterly wrong."
exit 1
fi
start() {
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
}
case $1 in
start|--start)
start
;;
open|--open)
invite=`date -u +%N`
open=`echo $2 | sed 's/sparkleshare:\/\/addProject\///'`
curl --insecure --output ~/SparkleShare/.$invite.xml $open
start
;;
*)
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" --help
;;
esac
|