From: Mike Frysinger Date: Wed, 1 Feb 2012 15:59:45 +0000 (-0500) Subject: ignore empty xml files X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=79d03612d0b6ab821c5c6ef7c86a24f45d738960;p=home.git ignore empty xml files --- 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 | \