Pārlūkot izejas kodu

Better error message when osx script is invoked without an argument

svn:r4190
Nick Mathewson 20 gadi atpakaļ
vecāks
revīzija
dcc1b8a838
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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"