rename helper files and etools file

This commit is contained in:
fabolous005 2024-09-13 12:12:28 +02:00
parent 674bf18d65
commit b54f939d46
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ function etools_smart_find() {
if [ ! "${2}" = "" ]; then if [ ! "${2}" = "" ]; then
[ ! -d "${2}" ] && [ ! -d "${ETOOLS_REPO_PATH}/${2}" ] && \ [ ! -d "${2}" ] && [ ! -d "${ETOOLS_REPO_PATH}/${2}" ] && \
eerror "no valid repository name" && return 2; eerror "no valid repository name" && return 2;
. ./etools-helper.sh . ./helper.sh
if [[ "${2}" == /* ]]; then if [[ "${2}" == /* ]]; then
# shellcheck disable=SC2046 # shellcheck disable=SC2046
_filter $(_formatted_find "$@") _filter $(_formatted_find "$@")
@ -29,12 +29,12 @@ function etools_smart_find() {
_filter $(_formatted_find "${1}" "${ETOOLS_REPO_PATH}/${2}") _filter $(_formatted_find "${1}" "${ETOOLS_REPO_PATH}/${2}")
fi fi
else else
. ./etools-helper.sh . ./helper.sh
# shellcheck disable=SC2046 # shellcheck disable=SC2046
_filter $(_formatted_find "${1}" "/var/db/repos") _filter $(_formatted_find "${1}" "/var/db/repos")
fi fi
# unset helper functions # unset helper functions
./etools-helper.sh ./helper.sh
} }