Non-zero exit when rpmbuild fails in local command
local command runs rpmbuild in conjunction with tee in a pipe. The
whole command will return zero even if the first rpmbuild fails and
exits with non-zero.
Both bash and zsh are supported.
Signed-off-by: Chenxiong Qi <cqi@redhat.com>