aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-09 22:53:02 -0500
committerDave Reisner <d@falconindy.com>2010-01-09 22:53:02 -0500
commite71402cb66780617d18876ba9121f8bc0f0fc5d4 (patch)
tree28119e2ed808c145506d4764cf176ef1860bcbd0 /squashfu
parent15019bf42bf00fce0e08360843d57df0c66dd8f1 (diff)
downloadsquashfu-e71402cb66780617d18876ba9121f8bc0f0fc5d4.tar.gz
Fix invalid arg error in print_usage
Diffstat (limited to 'squashfu')
-rwxr-xr-xsquashfu7
1 files changed, 3 insertions, 4 deletions
diff --git a/squashfu b/squashfu
index d612b1c..bcc4f8d 100755
--- a/squashfu
+++ b/squashfu
@@ -278,7 +278,7 @@ dispatch_backup () {
"--resquash") RESQUASH_AFTER=true;KEEP_LAST_WEEK=true ;;
"--resquash-discard-old") RESQUASH_AFTER=true;KEEP_LAST_WEEK=false ;;
"--modifier") shift;MODIFIER=$1 ;;
- *) die "Invalid option $1"; usage ;;
+ *) die "Invalid backup option $1"; usage ;;
esac
shift
done
@@ -290,14 +290,13 @@ dispatch_backup () {
dispatch_report () {
#am_i_root
- # If no arg supplied, no need to parse
- [[ -z $1 ]] && print_usage
# Check for valid arg
case $1 in
+ "") print_usage ;;
"full") print_usage full ;;
*) die "Invalid report option"; usage ;;
- esac
+ esac;
exit 0
}