summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-01-15 08:25:29 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:35:39 +0100
commit342d2870ebe66fc987bbb6523c67885631eb0e00 (patch)
tree6d9332db2197bb7b54e3e3b97f83474cd2430e56 /helpers/lh_chroot_hacks
parente8e4001524ee6fa47ce7ffe06da39b6d43e065d2 (diff)
downloadvyos-live-build-342d2870ebe66fc987bbb6523c67885631eb0e00.tar.gz
vyos-live-build-342d2870ebe66fc987bbb6523c67885631eb0e00.zip
Consistently using the pipe as seperator in sed commands now.
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}