summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-27 10:09:01 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-27 10:09:01 -0400
commit2f9a68282883a508861dcf48c15790af953286f6 (patch)
treef35e31d9da88cd8cc3f1d69eeb9fa044b9f54fce /src
parent3c306f6b22883f8462efa26315770fdfc7369964 (diff)
librefetch: bail early if makepkg fails
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librefetch/librefetch2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index f73beca..9b90798 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -134,7 +134,7 @@ main() {
export PKGDEST=$startdir
export pkg_file=$dst
cd "$BUILDDIR"
- "$makepkg" "${makepkg_opts[@]}" -p "$srcbuild" >> /dev/stderr
+ "$makepkg" "${makepkg_opts[@]}" -p "$srcbuild" >> /dev/stderr || return 1
rm -- "${pkg_file##*/}"
fi
}