From 4e0618fc71f117498bfa72a3f54c2062ea72e3a8 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 31 Jan 2010 16:02:51 -0500 Subject: Condense action execution and null parameter check --- squashfu | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'squashfu') diff --git a/squashfu b/squashfu index 4758a86..21ca69c 100755 --- a/squashfu +++ b/squashfu @@ -440,8 +440,6 @@ HELP exit 1 } -[[ -z $1 ]] && ( usage; exit 1; ) - while getopts :BCD:QR:Uc: opt; do case $opt in B) @@ -467,4 +465,4 @@ while getopts :BCD:QR:Uc: opt; do esac >&2 done -[[ -n $action ]] && action_$action +[[ -n $action ]] && action_$action || usage -- cgit v1.2.3