xbps-src: return error of the target if -t is set.

This commit is contained in:
Juan RP 2015-02-27 23:31:02 +01:00
parent fcf24b660f
commit 9c8ff5c33a
1 changed files with 3 additions and 1 deletions

View File

@ -675,10 +675,12 @@ case "$XBPS_TARGET" in
;;
esac
rval=$?
if [ -n "$XBPS_TEMP_MASTERDIR" ]; then
msg_normal "Removing temporary masterdir at $XBPS_MASTERDIR...\n"
rm -rf $XBPS_MASTERDIR
fi
# Agur
exit $?
exit $rval