handle a call with no arguments
[gregoa/movein.git] / movein
diff --git a/movein b/movein
index 0f13d63..9d7e03e 100755 (executable)
--- a/movein
+++ b/movein
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright © 2008 Mike O'Connor <stew@vireo.org>
 #
@@ -226,6 +226,10 @@ END
 
 }
 
+if [ $# -lt 1 ]; then
+    usage
+    exit 1
+fi
 
 command=$1 ; shift
 case "$command" in