summaryrefslogtreecommitdiff
path: root/src/chroot-tools/hooks-chcleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools/hooks-chcleanup.sh')
-rw-r--r--src/chroot-tools/hooks-chcleanup.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chroot-tools/hooks-chcleanup.sh b/src/chroot-tools/hooks-chcleanup.sh
index e76eac0..3a13aab 100644
--- a/src/chroot-tools/hooks-chcleanup.sh
+++ b/src/chroot-tools/hooks-chcleanup.sh
@@ -20,6 +20,7 @@ hook_pre_build+=("clean_chroot")
clean_chroot() (
local copydir=$1
+
if $INCHROOT; then
cd /startdir
"$(librelib chroot/chcleanup)"