diff options
Diffstat (limited to 'main.sh')
-rw-r--r-- | main.sh | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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 $@ |