diff --git a/container/src/finance/lib/internal/lib_fetch.bash b/container/src/finance/lib/internal/lib_fetch.bash index 4b35275..92eff72 100644 --- a/container/src/finance/lib/internal/lib_fetch.bash +++ b/container/src/finance/lib/internal/lib_fetch.bash @@ -660,7 +660,9 @@ function lib_fetch::__fetch_price() # Prices master file # NOTE: base dir of all price files (subdirs will be by year) - local _master_prices="${global_child_profile_flow}/prices/master.prices" + local -r _prices_dir="${global_child_profile_flow}/prices" + [ ! -d "$_prices_dir" ] && mkdir -p "$_prices_dir" + local -r _master_prices="${_prices_dir}/master.prices" for _api in "${_arg_api[@]}"; do