Explorar el Código

Better error message when osx script is invoked without an argument

svn:r4190
Nick Mathewson hace 20 años
padre
commit
dcc1b8a838
Se han modificado 1 ficheros con 5 adiciones y 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"