From f7124f64a8bafe70cb52cfeb225265d229befa66 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 19 Dec 2016 11:04:09 -0800 Subject: 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 --- tools/gen-bugnote | 11 ++++++----- 1 file 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 '' | - 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:.*::' \ -e 's/[^\.]$/&./' \ - ` + -e 's/{/\\{/' \ + ) echo -e "* $bug_title (ws-buglink:$bug_id[])\n" \ | $recode_cmd \ -- cgit v1.2.3