From 79d03612d0b6ab821c5c6ef7c86a24f45d738960 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Feb 2012 10:59:45 -0500 Subject: [PATCH] ignore empty xml files --- .bin/er-close | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/er-close b/.bin/er-close index e7888c3..fa9ffda 100755 --- a/.bin/er-close +++ b/.bin/er-close @@ -41,7 +41,7 @@ while [[ $# -ne 0 ]] ; do xml="${tdir}/${b}.xml" # server doesn't support timestamps, so cannot use -N - if [[ ! -e $xml ]] ; then + if [[ ! -s $xml ]] ; then wget -q -O $xml https://bugs.gentoo.org/${b}?ctype=xml fi name=$(xml sel -E utf8 -t -m bugzilla/bug/long_desc -c who -n $xml | \ -- 2.39.5