summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"