summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_cache
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_cache')
-rwxr-xr-xhelpers/lh_chroot_cache5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_chroot_cache b/helpers/lh_chroot_cache
index 8d3d962..2f016a6 100755
--- a/helpers/lh_chroot_cache
+++ b/helpers/lh_chroot_cache
@@ -49,8 +49,11 @@ do
if [ "${STAGE}" = "chroot" ] && [ -d cache/stages_chroot ]
then
+ # Removing old chroot
+ rm -rf chroot
+
# Restoring old cache
- ${LH_ROOT_COMMAND} cp -a cache/stages_chroot/* chroot
+ ${LH_ROOT_COMMAND} cp -a cache/stages_chroot chroot
if [ -n "${LH_ROOT_COMMAND}" ]
then