Fix bug number display and check for invalid ID.
This commit is contained in:
parent
4272f47b04
commit
b7d084e3ff
@ -180,8 +180,9 @@ main() {
|
||||
echo
|
||||
local bn
|
||||
for bn in ${bns}; do
|
||||
wget -q http://bugs.gentoo.org/show_bug.cgi?id=12345 -O - \
|
||||
| sed -e 's; *<title>Gentoo Bug \([0-9]*\) - \(.*\)</title>;Bug \1: \2;gp' -e d
|
||||
wget -q http://bugs.gentoo.org/show_bug.cgi?id=${bn} -O - \
|
||||
| sed -e 's; *<title>Gentoo Bug \([0-9]*\) - \(.*\)</title>;Bug \1: \2;p' \
|
||||
-e "s; *<title>Gentoo \(Invalid Bug ID\)</title>;Bug ${bn}: !! \1;p" -e d
|
||||
done
|
||||
echo
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user