Commit a3d26040 authored by FredericLeroy's avatar FredericLeroy

build_helper: add EXIT handler to inform that the build fails

parent 30cf26c0
...@@ -95,6 +95,18 @@ check_supported_distribution() { ...@@ -95,6 +95,18 @@ check_supported_distribution() {
return 1 return 1
} }
##################
# Error handlers #
##################
handler_EXIT() {
local exit_code=$?
[ "$exit_code" -eq 0 ] || echo_error "build have failed"
exit $exit_code
}
trap handler_EXIT EXIT
########################### ###########################
# Cleaners # Cleaners
########################### ###########################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment