fix: Make build fail if module fails

This commit is contained in:
Gerald Pinder 2024-09-03 10:54:01 -04:00
parent 75a00ddb90
commit 4634f40840

View file

@ -26,12 +26,7 @@ script_path="/tmp/modules/${module}/${module}.sh"
color_string "$(print_banner "Start '${module}' Module")" "33"
chmod +x ${script_path}
set +e
${script_path} "${params}"
RETVAL=$?
set -e
if [ $RETVAL ]; then
if ${script_path} "${params}"; then
color_string "$(print_banner "End '${module}' Module")" "32"
else
color_string "$(print_banner "Failed '${module}' Module")" "31"