Skip to content

Commit 86eb781

Browse files
chauplacmichal42
authored andcommitted
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>
1 parent e062781 commit 86eb781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ txt_subst() {
8282
local infile="$3"
8383
local tmpfile="$infile.swp"
8484

85-
sed -e "s/$before/$after/" "$infile" >"$tmpfile"
85+
sed -e "s:$before:$after:" "$infile" >"$tmpfile"
8686
# replace original file with the edited one
8787
mv "$tmpfile" "$infile"
8888
}

0 commit comments

Comments
 (0)