projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e062781
)
scripts/config: fix variable substitution command
author
Clement Chauplannaz
<
[email protected]
>
Fri, 13 Sep 2013 08:45:13 +0000
(10:45 +0200)
committer
Michal Marek
<
[email protected]
>
Fri, 13 Sep 2013 11:06:59 +0000
(13:06 +0200)
Commit
229455bc02b87f7128f190c4491b4ceffff38648
accidentally changed the
separator between sed `s' command and its parameters from ':' to '/'.
Revert this change.
Reported-and-tested-by: Linus Walleij <
[email protected]
>
Signed-off-by: Clement Chauplannaz <
[email protected]
>
Signed-off-by: Michal Marek <
[email protected]
>
scripts/config
patch
|
blob
|
history
diff --git
a/scripts/config
b/scripts/config
index 2283be2bb62c067d3d318431d1071328a7d649fb..68041793698c5f22099782129b03c81b8b4bca54 100755
(executable)
--- a/
scripts/config
+++ b/
scripts/config
@@
-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"
}