aboutsummaryrefslogtreecommitdiff
path: root/libexec/build-make-distclean
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/build-make-distclean')
-rwxr-xr-xlibexec/build-make-distclean5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/build-make-distclean b/libexec/build-make-distclean
index ba39c6e..f3cc91a 100755
--- a/libexec/build-make-distclean
+++ b/libexec/build-make-distclean
@@ -14,8 +14,9 @@ build_make_distclean()
# this file.
cat "var/db/binpkgs/${CATEGORY}/${NAME}" | xargs -0 rm -f &
fi
- if [ -d "${W}" ]; then
- rm -rf "${W}" &
+
+ if [ -d "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" ]; then
+ rm -rf "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" &
fi
wait