Make OSX init script check for missing argument in a way that works

svn:r4433
This commit is contained in:
Nick Mathewson 2005-06-15 18:19:42 +00:00
parent 5782ffd79a
commit e8331f9d7d

View File

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