[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Better error message when osx script is invoked without an ...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] Better error message when osx script is invoked without an ...
- From: nickm@xxxxxxxx (Nick Mathewson)
- Date: Tue, 10 May 2005 18:41:34 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 10 May 2005 18:41:50 -0400
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home/or/cvsroot/tor/contrib/osx
In directory moria.mit.edu:/tmp/cvs-serv7093
Modified Files:
Tor
Log Message:
Better error message when osx script is invoked without an argument
Index: Tor
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/osx/Tor,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Tor 18 Mar 2005 22:43:46 -0000 1.4
+++ Tor 10 May 2005 22:41:31 -0000 1.5
@@ -56,4 +56,9 @@
RestartService () { StopService; StartService; }
+if [ "x$1" = x ]; then
+ echo "Syntax: tor {start|stop}
+ exit 1
+fi
+
RunService "$1"