From c8f6264f20556f25c6819227a8999795523d1939 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 19 Nov 2024 14:11:11 +0100 Subject: [PATCH] main/commands --- sh/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index f727013..b761e6e 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -7,7 +7,7 @@ SH_MAIN="${SH_ROOT}/main.sh" [ -n "${ENV}" ] || export ENV="${SH_MAIN}" -main_commands() { +_sh_main_commands() { local file="${1}" grep "()" "${file}" | cut --delimiter "(" --fields 1 @@ -35,7 +35,7 @@ main_source_directory() { module="${path}/${module}" if [ "${module}" != "${ENV}" ]; then . "${module}" - cmd="$(main_commands "${module}")" + cmd="$(_sh_main_commands "${module}")" if [ -n "${cmd}" ]; then [ -n "${CMD}" ] && CMD="${CMD} "