Merge pull request #134 into master

d8cc3c0 client: docker: lib_plugins: allow path depth (Aaron Fiore)
520be13 container: finance: lib_plugins: allow path depth (Aaron Fiore)
This commit was merged in pull request #134.
This commit is contained in:
2024-09-06 17:44:58 -07:00
2 changed files with 6 additions and 10 deletions

View File

@@ -88,13 +88,11 @@ function lib_plugins::__parse_args()
[[ ! "$_arg" =~ (^repo${global_arg_delim_1}|^custom${global_arg_delim_1}) ]] && lib_utils::die_usage "$_usage"
local -r _key="${_arg%${global_arg_delim_1}*}"
local -r _key="${_arg%%${global_arg_delim_1}*}"
local -r _len="$((${#_key} + 1))"
if [[ "$_key" =~ ^repo$|^custom$ ]]; then
local -r _arg_type="${_arg:${_len}}"
[ -z "$_arg_type" ] && lib_utils::die_usage "$_usage"
fi
local -r _arg_type="${_arg:${_len}}"
[ -z "$_arg_type" ] && lib_utils::die_usage "$_usage"
local _path
case "$_key" in

View File

@@ -86,13 +86,11 @@ function lib_plugins::__parse_args()
[[ ! "$_arg" =~ (^repo${global_arg_delim_1}|^custom${global_arg_delim_1}) ]] && lib_utils::die_usage "$_usage"
local -r _key="${_arg%${global_arg_delim_1}*}"
local -r _key="${_arg%%${global_arg_delim_1}*}"
local -r _len="$((${#_key} + 1))"
if [[ "$_key" =~ ^repo$|^custom$ ]]; then
local -r _arg_type="${_arg:${_len}}"
[ -z "$_arg_type" ] && lib_utils::die_usage "$_usage"
fi
local -r _arg_type="${_arg:${_len}}"
[ -z "$_arg_type" ] && lib_utils::die_usage "$_usage"
local _path
case "$_key" in