From: Joerg Jaspert Date: Sat, 4 Jun 2011 11:33:46 +0000 (+0200) Subject: handle a call with no arguments X-Git-Url: https://git.toastfreeware.priv.at/gregoa/movein.git/commitdiff_plain/28a8e3d9cbf5423b48b372b5d94509749fbf5dfb?hp=0991f2835418eff45b8655a5dd3191d8412025a8 handle a call with no arguments without this we just break on the shift and leave the user without any explanation --- 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