From d23689f462039cb7f6fd8e3e5daee9bd08f6e5a3 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Mon, 11 Jan 2010 11:10:30 -0500 Subject: fix invocation without subcommands to call usage function and exit 1 explicitlly --- src/monkeysphere-host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/monkeysphere-host') diff --git a/src/monkeysphere-host b/src/monkeysphere-host index 52a4373..763a37b 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -238,7 +238,7 @@ export LOG_PREFIX # get subcommand COMMAND="$1" -[ "$COMMAND" ] || $PGRM help +[ "$COMMAND" ] || (usage; exit 1) shift case $COMMAND in -- cgit v1.2.3