Selaa lähdekoodia

Better error message when osx script is invoked without an argument

svn:r4190
Nick Mathewson 20 vuotta sitten
vanhempi
commit
dcc1b8a838
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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"