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}"
|
[ -n "${ENV}" ] || export ENV="${SH_MAIN}"
|
||||||
|
|
||||||
main_commands() {
|
_sh_main_commands() {
|
||||||
local file="${1}"
|
local file="${1}"
|
||||||
grep "()" "${file}" |
|
grep "()" "${file}" |
|
||||||
cut --delimiter "(" --fields 1
|
cut --delimiter "(" --fields 1
|
||||||
|
@ -35,7 +35,7 @@ main_source_directory() {
|
||||||
module="${path}/${module}"
|
module="${path}/${module}"
|
||||||
if [ "${module}" != "${ENV}" ]; then
|
if [ "${module}" != "${ENV}" ]; then
|
||||||
. "${module}"
|
. "${module}"
|
||||||
cmd="$(main_commands "${module}")"
|
cmd="$(_sh_main_commands "${module}")"
|
||||||
if [ -n "${cmd}" ]; then
|
if [ -n "${cmd}" ]; then
|
||||||
[ -n "${CMD}" ] && CMD="${CMD}
|
[ -n "${CMD}" ] && CMD="${CMD}
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in a new issue