From 66a41aa8f7dbfa20d111f8692ed8dd460c693f6f Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 3 Jun 2022 19:24:13 +0200 Subject: [PATCH] Added customer_id_base_dir --- read_config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/read_config b/read_config index 4e2a039..f0fbaaa 100755 --- a/read_config +++ b/read_config @@ -27,7 +27,7 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once if [ -z "$workspace_dir" ]; then log_fatal "$func:${LINENO}: workspace_dir not set in $1" fi - log_debug "$func:${LINENO}: workspace_dir=$working_dir" + log_debug "$func:${LINENO}: workspace_dir=$workspace_dir" readonly customer_location=$(cat "$1" | jq -r .customer_location) if [ -z "$customer_location" ]; then @@ -69,6 +69,11 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once local __customer_base_dir="$working_directory/${workspace_dir}" __customer_base_dir="${__customer_base_dir}/${customer_id}" + + readonly customer_id_base_dir=${__customer_base_dir} + log_debug "$func:${LINENO}: customer_id_base_dir=" + log_debug "$func:${LINENO}: $customer_id_base_dir" + __customer_base_dir="${__customer_base_dir}/${customer_location}" readonly customer_location_dir="$__customer_base_dir"