[or-cvs] backport: Make OSX init script check for missing argument i...

Nick Mathewson nickm at seul.org
Wed Jun 15 18:20:16 UTC 2005


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

Modified Files:
      Tag: tor-0_1_0-patches
	Tor 
Log Message:
backport: 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.8.2.1
diff -u -d -r1.8 -r1.8.2.1
--- Tor	23 May 2005 04:33:08 -0000	1.8
+++ Tor	15 Jun 2005 18:20:14 -0000	1.8.2.1
@@ -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