ソースを参照

Better error message when osx script is invoked without an argument

svn:r4190
Nick Mathewson 20 年 前
コミット
dcc1b8a838
1 ファイル変更5 行追加0 行削除
  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"