Skip to content

Commit

Permalink
scripts/config: fix variable substitution command
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clement Chauplannaz authored and Michal Marek committed Sep 13, 2013
1 parent e062781 commit 86eb781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/config
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 86eb781

Please sign in to comment.