summaryrefslogtreecommitdiffstats
path: root/scripts/config
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-09-19 11:44:24 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-20 11:03:54 +0200
commitdcfcbd2e9e845a27d5d5e1dc673973e1c7f5f657 (patch)
tree5fa389bafc6a1c3b35c80ce86fc253d474d237c1 /scripts/config
parent51bde7950c557343054729d0bb0b44d9d8818bf2 (diff)
downloadptxdist-dcfcbd2e9e845a27d5d5e1dc673973e1c7f5f657.tar.gz
ptxdist-dcfcbd2e9e845a27d5d5e1dc673973e1c7f5f657.tar.xz
scripts/config: use more obscure char for sed
Otherwise changing string values that contain a ':' will fail. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/config')
-rwxr-xr-xscripts/config3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/config b/scripts/config
index e0e39826d..a73ef967d 100755
--- a/scripts/config
+++ b/scripts/config
@@ -82,8 +82,9 @@ txt_subst() {
local after="$2"
local infile="$3"
local tmpfile="$infile.swp"
+ local sep="$(printf "\x1F")"
- sed -e "s:$before:$after:" "$infile" >"$tmpfile"
+ sed -e "s$sep$before$sep$after$sep" "$infile" >"$tmpfile"
# replace original file with the edited one
mv "$tmpfile" "$infile"
}