From 0fe9da0a44fc0579009364f2619e5cfd3bc900c5 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 27 Apr 2017 23:41:57 -0400 Subject: Add main module --- main.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 main.sh (limited to 'main.sh') 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 [, ...] +# +# 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 $@ -- cgit v1.2.3