From eebcd38bad2d142a7b6457de0c2f1da9eab6ebf7 Mon Sep 17 00:00:00 2001 From: vonavi Date: Mon, 30 Sep 2013 08:38:17 +0300 Subject: [PATCH] Fix: read the last line of tour_info. --- schedule | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule b/schedule index cf32f07..c85bcba 100755 --- a/schedule +++ b/schedule @@ -33,7 +33,7 @@ for tour in $@; do url=https://raw.github.com/$repo/master/$tournament/tour_$tour/tour_info echo ">>>" - curl -q --silent $url | while read line; do + curl -q --silent -w '\n' $url | while read line; do if [[ -z $line ]]; then echo elif [[ -z $name || $(egrep "Тур|=|Время|$name" <<< "$line") ]]; then