summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-27 23:41:57 -0400
committerMalf Furious <m@lfurio.us>2017-04-27 23:41:57 -0400
commit0fe9da0a44fc0579009364f2619e5cfd3bc900c5 (patch)
tree0824ed376c75ade68a057ac10e1d573c867cf394
parentc61c94fb66deaad15087dc21c1f71ccb7bb16f96 (diff)
downloadsystrunk-0fe9da0a44fc0579009364f2619e5cfd3bc900c5.tar.gz
systrunk-0fe9da0a44fc0579009364f2619e5cfd3bc900c5.zip
Add main module
-rw-r--r--main.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/main.sh b/main.sh
new file mode 100644
index 0000000..e26e724
--- /dev/null
+++ b/main.sh
@@ -0,0 +1,23 @@
+##
+# systrunk <command> [<options>, ...]
+#
+# A version control system powered by rsync, focused on tracking large
+# directory trees with large files, even binary files; system images.
+#
+# Main function, decide what to do ...
+##
+function main
+{
+ if [ $# -eq 0 ]; then
+ echo "Error: no command given"
+ exit
+ fi
+
+ if [[ "$1" == "checkout" ]]; then
+ systr_checkout $@
+ else
+ echo "Error: $1 not recognized"
+ fi
+}
+
+main $@