summaryrefslogtreecommitdiff
path: root/src/chroot-tools/librechroot
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-30 18:27:24 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-30 18:27:24 -0500
commit63467291c9890288e983abae3c72e112aa028c66 (patch)
tree9f9615db701f09d95f791c9928b8f84b07f47506 /src/chroot-tools/librechroot
parent42d3216254bb31c7a43c64df3b51bbb05c57cbd4 (diff)
librechroot: use PATH to find chcleanup
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-xsrc/chroot-tools/librechroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index e93c57e..6594f15 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -121,7 +121,7 @@ main() {
;;
clean_pacman)
msg "Intelligently cleaning packages"
- cp -a "$(dirname $0)/chcleanup" "${copydir}/clean"
+ cp -a "$(which chcleanup)" "${copydir}/clean"
echo '#!/bin/bash' > "${copydir}/cleanstrap"
echo 'mkdir /build' >> "${copydir}/cleanstrap"
echo 'cd /build; /clean' >> "${copydir}/cleanstrap"