From f080f34bb33b8d7d1ab603ad9385e739846ace0a Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sun, 12 Jun 2022 13:10:48 +0200 Subject: [PATCH] Added GIT_CLONE_EXECUTE --- read_config | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/read_config b/read_config index 1eacaf8..c1c6989 100755 --- a/read_config +++ b/read_config @@ -28,6 +28,8 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once readonly PROGRAM=`basename $0` readonly WORKSPACE_DIR=workspace + GIT_CLONE_EXECUTED=0 + EXITCODE=$RC_SUCCESS CLONE_CUSTOMER_REPOSITORY=false @@ -91,6 +93,16 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once readonly ZONE_GROUPS=(${__zone_groups[@]}) assert_a ZONE_GROUPS + + # TODO + # TODO: falls mehrere gruppen/zonen auftauchen hier anpassen + # TODO + # Zone aus /etc/zone_nr auslesen + # + readonly ZONE_GROUP=1 + readonly ZONE=1 + + readonly LOCAL_BRANCH="$(cat "$cf" | jq -r .local_branches[$ZONE])" return 0 } @@ -151,13 +163,7 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once # readonly CUST_BASE_DIRS=(${__customer_base_dirs[@]}) # assert_a CUST_BASE_DIRS - # TODO - # TODO: falls mehrere gruppen/zonen auftauchen hier anpassen - # TODO - # Zone aus /etc/zone_nr auslesen - # - readonly ZONE_GROUP=1 - readonly ZONE=1 + readonly CUST_BASE_DIR="$CUSTOMER_ID_BASE_DIR" #readonly CUST_BASE_DIR="${CUST_BASE_DIRS[$ZONE]}" #assert_d CUST_BASE_DIR