forked from EvergreenCrypto/docker-finance
container: rename $global_conf_shell -> $global_conf_subscript
Provides clarity, avoids confusion.
This commit is contained in:
@@ -96,7 +96,7 @@ void example2()
|
|||||||
print_env("global_conf_fetch");
|
print_env("global_conf_fetch");
|
||||||
print_env("global_conf_hledger");
|
print_env("global_conf_hledger");
|
||||||
print_env("global_conf_meta");
|
print_env("global_conf_meta");
|
||||||
print_env("global_conf_shell");
|
print_env("global_conf_subscript");
|
||||||
// TODO(unassigned): read array from shell? ROOT impl simply calls stdlib getenv()
|
// TODO(unassigned): read array from shell? ROOT impl simply calls stdlib getenv()
|
||||||
// print_env("global_hledger_cmd");
|
// print_env("global_hledger_cmd");
|
||||||
print_env("global_parent_profile");
|
print_env("global_parent_profile");
|
||||||
|
|||||||
@@ -324,14 +324,14 @@ function lib_edit::__edit()
|
|||||||
$EDITOR "${_paths[@]}" || lib_utils::die_fatal
|
$EDITOR "${_paths[@]}" || lib_utils::die_fatal
|
||||||
;;
|
;;
|
||||||
shell)
|
shell)
|
||||||
[ -z "$global_conf_shell" ] && lib_utils::die_fatal
|
[ -z "$global_conf_subscript" ] && lib_utils::die_fatal
|
||||||
|
|
||||||
local _dir
|
local _dir
|
||||||
_dir="$(dirname $global_conf_shell)"
|
_dir="$(dirname $global_conf_subscript)"
|
||||||
[ ! -d "$_dir" ] && mkdir -p "$_dir"
|
[ ! -d "$_dir" ] && mkdir -p "$_dir"
|
||||||
|
|
||||||
local _file
|
local _file
|
||||||
_file="$(basename $global_conf_shell)"
|
_file="$(basename $global_conf_subscript)"
|
||||||
|
|
||||||
local _path
|
local _path
|
||||||
_path="${_dir}/${_file}"
|
_path="${_dir}/${_file}"
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ function lib_finance::finance()
|
|||||||
declare -grx global_conf_fetch="${global_child_profile_flow}/docker-finance.d/fetch/fetch.yaml"
|
declare -grx global_conf_fetch="${global_child_profile_flow}/docker-finance.d/fetch/fetch.yaml"
|
||||||
declare -grx global_conf_hledger="${global_child_profile_flow}/docker-finance.d/hledger/hledger.conf"
|
declare -grx global_conf_hledger="${global_child_profile_flow}/docker-finance.d/hledger/hledger.conf"
|
||||||
declare -grx global_conf_meta="${global_child_profile_flow}/docker-finance.d/meta/meta.csv"
|
declare -grx global_conf_meta="${global_child_profile_flow}/docker-finance.d/meta/meta.csv"
|
||||||
declare -grx global_conf_shell="${global_child_profile_flow}/docker-finance.d/shell/subscript.bash"
|
declare -grx global_conf_subscript="${global_child_profile_flow}/docker-finance.d/shell/subscript.bash"
|
||||||
|
|
||||||
# Implementation "libraries" (requires previously set globals)
|
# Implementation "libraries" (requires previously set globals)
|
||||||
source "${DOCKER_FINANCE_CONTAINER_REPO}/src/finance/lib/internal/lib_edit.bash" || exit 1
|
source "${DOCKER_FINANCE_CONTAINER_REPO}/src/finance/lib/internal/lib_edit.bash" || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user