container: rename $global_conf_shell -> $global_conf_subscript

Provides clarity, avoids confusion.
This commit is contained in:
2024-09-22 18:36:03 -07:00
parent 0ec42d2420
commit 52270ba0b3
3 changed files with 5 additions and 5 deletions

View File

@@ -324,14 +324,14 @@ function lib_edit::__edit()
$EDITOR "${_paths[@]}" || lib_utils::die_fatal
;;
shell)
[ -z "$global_conf_shell" ] && lib_utils::die_fatal
[ -z "$global_conf_subscript" ] && lib_utils::die_fatal
local _dir
_dir="$(dirname $global_conf_shell)"
_dir="$(dirname $global_conf_subscript)"
[ ! -d "$_dir" ] && mkdir -p "$_dir"
local _file
_file="$(basename $global_conf_shell)"
_file="$(basename $global_conf_subscript)"
local _path
_path="${_dir}/${_file}"