[or-cvs] Better error message when osx script is invoked without an ...
Nick Mathewson
nickm at seul.org
Tue May 10 22:41:34 UTC 2005
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"
More information about the tor-commits
mailing list