Commit a3d26040 authored by Frédéric Leroy's avatar Frédéric Leroy

build_helper: add EXIT handler to inform that the build fails

parent 30cf26c0
......@@ -95,6 +95,18 @@ check_supported_distribution() {
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
###########################
......
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