diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-12-19 11:04:09 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-01-04 17:52:04 +0000 |
commit | f7124f64a8bafe70cb52cfeb225265d229befa66 (patch) | |
tree | 582bd61a195eb6525198adf13d341be168cc7243 /tools/gen-bugnote | |
parent | 9e7e30e6743e9336f310c281b3a54c923e73a54f (diff) |
Escape opening curly braces in gen-bugnote.
Curly braces are used for attribute replacement in AsciiDoc.
Change-Id: I1461ee26543dd20a9f799084a01710faef78f2d0
Reviewed-on: https://code.wireshark.org/review/19517
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools/gen-bugnote')
-rwxr-xr-x | tools/gen-bugnote | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/gen-bugnote b/tools/gen-bugnote index b6960a8353..e7004a53e6 100755 --- a/tools/gen-bugnote +++ b/tools/gen-bugnote @@ -49,14 +49,15 @@ if [ -z "$bug_id" ] ; then exit 1 fi -bug_title=` - curl -s -o - "https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=$bug_id" | - grep -i '<title>' | - sed \ +bug_title=$( + curl -s -o - "https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=$bug_id" \ + | grep -i '<title>' \ + | sed \ -e 's:.*<title>.*ndash; ::' \ -e 's:</title>.*::' \ -e 's/[^\.]$/&./' \ - ` + -e 's/{/\\{/' \ + ) echo -e "* $bug_title (ws-buglink:$bug_id[])\n" \ | $recode_cmd \ |