From 17ee57521738b578905d2297490af030d8ee5730 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 25 Aug 2013 17:29:30 -0300 Subject: Misc fixes --- httracker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httracker') diff --git a/httracker b/httracker index 42ae9af..982d395 100755 --- a/httracker +++ b/httracker @@ -5,7 +5,7 @@ # Configuration MIRRORS="/var/cache/sites/arquivo/conteudo/links.sarava.org/assets" -FEED="https://links.sarava.org/rss?sort=date_desc&count=50" +FEED="https://links.sarava.org/rss?sort=date_desc&count=100" TMP="/tmp/httracker" URLS="$TMP/urls.txt" LEVEL="1" @@ -54,7 +54,7 @@ mkdir -p $MIRRORS $TMP # Get URL # Thanks http://stackoverflow.com/questions/443991/how-to-parse-rss-feeds-xml-in-a-shell-script -curl -s $FEED | grep -o '[^<]*' | grep -o "[^>]*$" > $URLS +curl -s "$FEED" | grep -o '[^<]*' | grep -o "[^>]*$" > $URLS if [ "$?" != "0" ]; then echo "Error downloading feed $FEED, aborting." -- cgit v1.2.3