From 72829ca21d0340a7458be1dc32249c4a613f8063 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Fri, 18 Feb 2022 00:08:04 -0800 Subject: [PATCH] lib/utilities: `_bash-it-component-item-is-enabled()` - required arguments --- lib/utilities.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utilities.bash b/lib/utilities.bash index 6e65fe8f..60f15131 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -168,11 +168,11 @@ function _bash-it-component-list-disabled() { function _bash-it-component-item-is-enabled() { local component_type item_name each_file - if [[ -f "${1}" ]]; then + if [[ -f "${1?}" ]]; then item_name="$(_bash-it-get-component-name-from-path "${1}")" component_type="$(_bash-it-get-component-type-from-path "${1}")" else - component_type="${1}" item_name="${2}" + component_type="${1}" item_name="${2?}" fi for each_file in "${BASH_IT}/enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR?}${item_name}.${component_type}"*."bash" \