Prechádzať zdrojové kódy

Make OSX init script check for missing argument in a way that works

svn:r4433
Nick Mathewson 20 rokov pred
rodič
commit
e8331f9d7d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      contrib/osx/Tor

+ 1 - 1
contrib/osx/Tor

@@ -56,7 +56,7 @@ StopService ()
 
 RestartService () { StopService; StartService; }
 
-if [ "x$1" = x ]; then
+if [ "$#" = 0 ]; then
   echo "Syntax: tor {start|stop}"
   exit 1
 fi