diff options
Diffstat (limited to 'tools')
-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 \ |