container: rename $global_conf_shell -> $global_conf_subscript
Provides clarity, avoids confusion.
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user