Fix: read the last line of tour_info.

This commit is contained in:
vonavi 2013-09-30 08:38:17 +03:00
parent f97b14c14b
commit eebcd38bad

View File

@ -33,7 +33,7 @@ for tour in $@; do
url=https://raw.github.com/$repo/master/$tournament/tour_$tour/tour_info url=https://raw.github.com/$repo/master/$tournament/tour_$tour/tour_info
echo ">>>" echo ">>>"
curl -q --silent $url | while read line; do curl -q --silent -w '\n' $url | while read line; do
if [[ -z $line ]]; then if [[ -z $line ]]; then
echo echo
elif [[ -z $name || $(egrep "Тур|=|Время|$name" <<< "$line") ]]; then elif [[ -z $name || $(egrep "Тур|=|Время|$name" <<< "$line") ]]; then