diff --git a/shell/main.sh b/shell/main.sh index e41bdf9..37dfdfc 100644 --- a/shell/main.sh +++ b/shell/main.sh @@ -29,8 +29,11 @@ main_source_directory() { if [ "${module}" != "${ENV}" ]; then . "${module}" cmd="$(main_commands "${module}")" - [ -n "${cmd}" ] && CMD="${CMD} -${cmd}" + if [ -n "${cmd}" ]; then + [ -n "${CMD}" ] && CMD="${CMD} +" + CMD="${CMD}${cmd}" + fi fi done IFS="${ifs}"