4 # parameter: $1: git tag to build
5 # options: -g <alternative repository>
7 repos="https://github.com/wagner-tech"
8 if getopts "g:" opt; then
13 if [ -d kivitendo-erp ]
15 pushd kivitendo-erp >/dev/null
16 branch=$(git rev-parse --abbrev-ref HEAD)
17 git pull origin $branch
19 git clone $repos/kivitendo-erp
20 pushd kivitendo-erp >/dev/null