summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_hooks
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_chroot_hooks')
-rwxr-xr-xscripts/build/lb_chroot_hooks4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/lb_chroot_hooks b/scripts/build/lb_chroot_hooks
index 37f26df28..a0459335d 100755
--- a/scripts/build/lb_chroot_hooks
+++ b/scripts/build/lb_chroot_hooks
@@ -55,8 +55,8 @@ if ls chroot/root/lb_chroot_hooks/* > /dev/null 2>&1
then
for _HOOK in chroot/root/lb_chroot_hooks/*
do
- Chroot chroot "/root/$(basename ${_HOOK})" || { Echo_error "${_HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
- rm -f chroot/root/"$(basename ${_HOOK})"
+ Chroot chroot "/root/lb_chroot_hooks/$(basename ${_HOOK})" || { Echo_error "${_HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
+ rm -f chroot/root/lb_chroot_hooks/"$(basename ${_HOOK})"
done
rmdir chroot/root/lb_chroot_hooks