From 7c1f4f776e6c5651c35374549c23dc9d3e486648 Mon Sep 17 00:00:00 2001 From: MEBIL Date: Tue, 1 Aug 2017 14:14:08 +0200 Subject: [PATCH] mebil --- build/kivitendo.co | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/build/kivitendo.co b/build/kivitendo.co index e8474d273..85ade5a82 100755 --- a/build/kivitendo.co +++ b/build/kivitendo.co @@ -4,20 +4,28 @@ set -e # parameter: $1: git tag to build # options: -g -repos="https://github.com/wagner-tech" -if getopts "g:" opt; then - repos=$OPTARG - shift 2 -fi +#repos="https://github.com/wagner-tech" +#if getopts "g:" opt; then +# repos=$OPTARG +# shift 2 +#fi +# +#if [ -e kivitendo-erp ] +#then +# pushd kivitendo-erp >/dev/null + #branch=$(git rev-parse --abbrev-ref HEAD) + #git pull origin $branch +#else +# git clone $repos/kivitendo-erp +# pushd kivitendo-erp >/dev/null +#fi +# git checkout $1 +#popd >/dev/null -if [ -d kivitendo-erp ] -then - pushd kivitendo-erp >/dev/null - branch=$(git rev-parse --abbrev-ref HEAD) - git pull origin $branch -else - git clone $repos/kivitendo-erp - pushd kivitendo-erp >/dev/null -fi +# alternativer Versuch: Es wird das lokale Repository geklont: + +git clone ../.. +pushd kivitendo-erp >/dev/null git checkout $1 popd >/dev/null + -- 2.20.1