On Thu, Aug 04, 2005 at 04:30:06AM +0400, Alexey M. Tourbin wrote: > # Bugzilla::DB::SendSQL('SELECT bugs.bug_id bugs.bug_severity bugs.priority > x οΤΣΤΟΚ. RCS file: qa-robot/bugs,v retrieving revision 1.12 diff -u -r1.12 bugs --- bugs 30 Jul 2005 20:35:07 -0000 1.12 +++ bugs 4 Aug 2005 01:07:51 -0000 @@ -24,6 +24,8 @@ cd "${workdir:?}" wget --non-verbose --tries=1 --timeout=60 -O wget.out "$URL" &>wget.sucks || { echo "wget sucks:"; cat wget.sucks; return 1; } >&2 + head -1 wget.out |grep -qs ^bug_id, || + { echo "bad CSV header:"; head -1 wget.out; return 1; } >&2 sed 1d wget.out |csv2tab cd - }