Explorar o código

Better error message when osx script is invoked without an argument

svn:r4190
Nick Mathewson %!s(int64=20) %!d(string=hai) anos
pai
achega
dcc1b8a838
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      contrib/osx/Tor

+ 5 - 0
contrib/osx/Tor

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