From 9c8ff5c33afc13cb82b18eb782073f76cb034c31 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 27 Feb 2015 23:31:02 +0100 Subject: [PATCH] xbps-src: return error of the target if -t is set. --- xbps-src | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xbps-src b/xbps-src index 65fbf03544..9da59faa85 100755 --- a/xbps-src +++ b/xbps-src @@ -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