Better error message when osx script is invoked without an argument

svn:r4190
This commit is contained in:
Nick Mathewson 2005-05-10 22:41:31 +00:00
parent 3893b3c7ac
commit dcc1b8a838

View File

@ -56,4 +56,9 @@ StopService ()
RestartService () { StopService; StartService; }
if [ "x$1" = x ]; then
echo "Syntax: tor {start|stop}
exit 1
fi
RunService "$1"