aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-17 23:08:12 -0500
committerDave Reisner <d@falconindy.com>2010-01-17 23:08:12 -0500
commit56a75a989d9da37cfc8edd29c05953b328cb97be (patch)
treef8fc00e07e10b99187ac18a97dbc3dfc1283f1dd
parent12bd9ee22b0703d8b641b0761fcd40d9d7595cb9 (diff)
downloadsquashfu-56a75a989d9da37cfc8edd29c05953b328cb97be.tar.gz
Start transition to more robust options parser
-rwxr-xr-xsquashfu9
1 files changed, 5 insertions, 4 deletions
diff --git a/squashfu b/squashfu
index fad434c..e6f376b 100755
--- a/squashfu
+++ b/squashfu
@@ -384,11 +384,12 @@ HELP
}
case $1 in
- "-B") action_backup ;;
- "-C") action_resquash_now ;;
- "-Q") action_report ;;
- "-R") shift; action_rollback $1 ;;
+ "-B") action=backup ;;
+ "-C") action=resquash_now ;;
+ "-Q") action=report ;;
+ "-R") shift; action=rollback $1 ;;
"-U") unmount_all ;;
*) usage ;;
esac
+action_$action