提交 86eb7818 编写于 作者: C Clement Chauplannaz 提交者: Michal Marek

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: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NClement Chauplannaz <chauplac@gmail.com>
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 e0627813
......@@ -82,7 +82,7 @@ txt_subst() {
local infile="$3"
local tmpfile="$infile.swp"
sed -e "s/$before/$after/" "$infile" >"$tmpfile"
sed -e "s:$before:$after:" "$infile" >"$tmpfile"
# replace original file with the edited one
mv "$tmpfile" "$infile"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册