summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hacks
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-xhelpers/lh_chroot_hacks2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index 5d9a4ac49..1dd48502e 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -133,7 +133,7 @@ then
do
DIRECTORY="$(dirname ${FILE})"
FILE="$(basename ${FILE})"
- RELATIVE_PATH="$(echo ${DIRECTORY} | sed 's/[^\/]\+/../g; s/^\///g')"
+ RELATIVE_PATH="$(echo ${DIRECTORY} | sed 's|[^/]\+|..|g; s|^/||g')"
# Touch files in case they don't yet exist
mkdir -p chroot/${DIRECTORY}