xbps-src: run_func on error must return 1 not 2.

This commit is contained in:
Juan RP 2015-03-20 09:17:40 +01:00
parent c20b3edab4
commit ce859b4188

View file

@ -31,7 +31,7 @@ error_func() {
if [ -n "$1" -a -n "$2" ]; then
msg_red "$pkgver: failed to run $1() at line $2.\n"
fi
exit 2
exit 1
}
exit_and_cleanup() {