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"