Added customer_id_base_dir
This commit is contained in:
parent
77b7b29ed8
commit
66a41aa8f7
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user