Skip to content
Snippets Groups Projects
Commit a3d26040 authored by Frédéric Leroy's avatar Frédéric Leroy
Browse files

build_helper: add EXIT handler to inform that the build fails

parent 30cf26c0
No related branches found
No related tags found
No related merge requests found
......@@ -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
###########################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment