Commit 86eb781889ec31f6421b86ab252ea609d456322d

Authored by Clement Chauplannaz
Committed by Michal Marek
1 parent e062781397

scripts/config: fix variable substitution command

Commit 229455bc02b87f7128f190c4491b4ceffff38648 accidentally changed the
separator between sed `s' command and its parameters from ':' to '/'.

Revert this change.

Reported-and-tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Clement Chauplannaz <chauplac@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -82,7 +82,7 @@
82 82 local infile="$3"
83 83 local tmpfile="$infile.swp"
84 84  
85   - sed -e "s/$before/$after/" "$infile" >"$tmpfile"
  85 + sed -e "s:$before:$after:" "$infile" >"$tmpfile"
86 86 # replace original file with the edited one
87 87 mv "$tmpfile" "$infile"
88 88 }