aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-12 11:03:30 -0500
committerDave Reisner <d@falconindy.com>2010-01-12 11:03:30 -0500
commit26af29e85cb3d78fe966fbeda24905976eafe225 (patch)
treed254fea174a81553b6e07ecd44bc3546d11057c7
parent146d12ded31768f558b53ad14e06d6029498f2be (diff)
downloadsquashfu-26af29e85cb3d78fe966fbeda24905976eafe225.tar.gz
Add makeshift option parser to test rollback function
-rwxr-xr-xsquashfu6
1 files changed, 5 insertions, 1 deletions
diff --git a/squashfu b/squashfu
index a75c2eb..ff6b5ea 100755
--- a/squashfu
+++ b/squashfu
@@ -304,5 +304,9 @@ action_report () {
}
-action_backup
+case $1 in
+ "-B") action_backup ;;
+ "-R") shift, action_rollback ;;
+ *) "Invalid action" ;;
+esac