kkimurak / ssl-setup

Bash script that setup the official RoboCup-SSL tools with required packages ( https://github.com/RoboCup-SSL/ )
4 stars 0 forks source link

Enhance error_end() and make sure that stops at error #33

Closed kkimurak closed 5 years ago

kkimurak commented 5 years ago

closes #26

I've enhanced the function error_end() to be able to pass argument (exit code, error message).
It bypass the exit code from process (that failed) to shell.
So the problem (not stopping at error) solved.
And I replaced most of || echo "error message to || error_end $? "error message".