[or-cvs] Make OSX init script check for missing argument in a way th...

Nick Mathewson nickm at seul.org
Wed Jun 15 18:19:45 UTC 2005


Update of /home/or/cvsroot/tor/contrib/osx
In directory moria:/tmp/cvs-serv10150/contrib/osx

Modified Files:
	Tor 
Log Message:
Make OSX init script check for missing argument in a way that works

Index: Tor
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/osx/Tor,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Tor	23 May 2005 04:33:08 -0000	1.8
+++ Tor	15 Jun 2005 18:19:42 -0000	1.9
@@ -56,7 +56,7 @@
 
 RestartService () { StopService; StartService; }
 
-if [ "x$1" = x ]; then
+if [ "$#" = 0 ]; then
   echo "Syntax: tor {start|stop}"
   exit 1
 fi 



More information about the tor-commits mailing list