From 8262f7c5d0b50ef8d9cba1a65df1ed824ad56efb Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 18:17:06 +0100 Subject: [PATCH] cmd --- shell/main.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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}"