diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-31 16:02:51 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-31 16:02:51 -0500 |
commit | 4e0618fc71f117498bfa72a3f54c2062ea72e3a8 (patch) | |
tree | 72e9684be5f77c387cfc689b46f8d3afd68c21b0 /squashfu | |
parent | cd19b9ef21328a7667af6268cf72557e0080348e (diff) | |
download | squashfu-4e0618fc71f117498bfa72a3f54c2062ea72e3a8.tar.gz |
Condense action execution and null parameter check
Diffstat (limited to 'squashfu')
-rwxr-xr-x | squashfu | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |