From dcc1b8a8389ca967d0b5f14c37a1277cb7efcbc7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 10 May 2005 22:41:31 +0000 Subject: Better error message when osx script is invoked without an argument svn:r4190 --- contrib/osx/Tor | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/osx/Tor b/contrib/osx/Tor index 83bb2a6f5b..983b67b91a 100755 --- a/contrib/osx/Tor +++ b/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" -- cgit v1.2.3-54-g00ecf