main/commands
This commit is contained in:
parent
a133acea99
commit
c8f6264f20
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue