Skip to content

Commit

Permalink
fix: Make build fail if module fails
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Sep 3, 2024
1 parent 75a00dd commit 4634f40
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/run_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4634f40

Please sign in to comment.