aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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