aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-31 16:02:51 -0500
committerDave Reisner <d@falconindy.com>2010-01-31 16:02:51 -0500
commit4e0618fc71f117498bfa72a3f54c2062ea72e3a8 (patch)
tree72e9684be5f77c387cfc689b46f8d3afd68c21b0
parentcd19b9ef21328a7667af6268cf72557e0080348e (diff)
downloadsquashfu-4e0618fc71f117498bfa72a3f54c2062ea72e3a8.tar.gz
Condense action execution and null parameter check
-rwxr-xr-xsquashfu4
1 files changed, 1 insertions, 3 deletions
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