diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-05-10 22:41:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-05-10 22:41:31 +0000 |
commit | dcc1b8a8389ca967d0b5f14c37a1277cb7efcbc7 (patch) | |
tree | f83b56770eb2d1f484d9d1c826ba600ff4aa315f /contrib | |
parent | 3893b3c7accc4bb8ead39b1343c4764303e4f799 (diff) | |
download | tor-dcc1b8a8389ca967d0b5f14c37a1277cb7efcbc7.tar.gz tor-dcc1b8a8389ca967d0b5f14c37a1277cb7efcbc7.zip |
Better error message when osx script is invoked without an argument
svn:r4190
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/osx/Tor | 5 |
1 files changed, 5 insertions, 0 deletions
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" |