diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-27 10:09:01 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-27 10:09:01 -0400 |
commit | 2f9a68282883a508861dcf48c15790af953286f6 (patch) | |
tree | f35e31d9da88cd8cc3f1d69eeb9fa044b9f54fce /src | |
parent | 3c306f6b22883f8462efa26315770fdfc7369964 (diff) |
librefetch: bail early if makepkg fails
Diffstat (limited to 'src')
-rwxr-xr-x | src/librefetch/librefetch | 2 |
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 } |