Exit after osrf_ctl.sh usage statement user/tsbere/auto_ctl
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 5 Oct 2011 14:35:00 +0000 (10:35 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Wed, 5 Oct 2011 14:35:00 +0000 (10:35 -0400)
Otherwise we may get it upwards of three times:

Once for specifying -h

Once for having an empty action

Once for having an invalid (no) action at the end of the script.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
bin/osrf_ctl.sh.in

index 20c549b..c3415a2 100755 (executable)
@@ -70,6 +70,7 @@ Examples:
   $0 -l -c opensrf_core.xml -a restart_all
 
 EOF
+exit;
 }
 
 # ---------------------------------------------------------------------------