Fix bug number display and check for invalid ID.

This commit is contained in:
Michał Górny 2010-07-12 10:37:19 +02:00
parent 4272f47b04
commit b7d084e3ff

View File

@ -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