From 28a8e3d9cbf5423b48b372b5d94509749fbf5dfb Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 4 Jun 2011 13:33:46 +0200 Subject: [PATCH] handle a call with no arguments without this we just break on the shift and leave the user without any explanation --- movein | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/movein b/movein index bf75c6f..9d7e03e 100755 --- a/movein +++ b/movein @@ -226,6 +226,10 @@ END } +if [ $# -lt 1 ]; then + usage + exit 1 +fi command=$1 ; shift case "$command" in -- 2.39.5