From 4eda15aca7650e199194a10e9694bfa5f1874d5c Mon Sep 17 00:00:00 2001 From: Ivan Davidov Date: Fri, 24 Nov 2017 15:01:49 +0200 Subject: [PATCH] Use '|' as separator in sed expression => less escaping and better readability. --- src/07_build_busybox.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/07_build_busybox.sh b/src/07_build_busybox.sh index 03b836f07..f7595b6b0 100755 --- a/src/07_build_busybox.sh +++ b/src/07_build_busybox.sh @@ -52,8 +52,8 @@ else fi # This variable holds the full path to the glibc installation area as quoted string. -# All back slashes are escaped (/ => \/) in order to keep the 'sed' command stable. -SYSROOT_ESCAPED=$(echo \"$SYSROOT\" | sed 's/\//\\\//g') +# All forward slashes are escaped (/ => \/) in order to keep the 'sed' command stable. +SYSROOT_ESCAPED=$(echo \"$SYSROOT\" | sed 's|/|\\/|g') # Now we tell BusyBox to use the glibc prepared area. sed -i "s/.*CONFIG_SYSROOT.*/CONFIG_SYSROOT=$SYSROOT_ESCAPED/" .config