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} "