summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
Diffstat (limited to 'src/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 25bde43..d0e8c0b 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -133,7 +133,9 @@ main() {
export PKGEXT=${PKGEXT%.part}
export PKGDEST=$startdir
export pkg_file=$dst
+ cd "$BUILDDIR"
"$makepkg" "${makepkg_opts[@]}" -p "$srcbuild" >> /dev/stderr
+ rm -- "${pkg_file##*/}"
fi
}