Fixed test errors, added dynamic resource folder and feed download script

This commit is contained in:
relikd
2018-09-12 15:59:16 +02:00
parent 4228bc3d67
commit dd9ec4b63d
7 changed files with 71 additions and 57 deletions

16
RSXMLTests/download_feeds.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
counter=0
function processLine() {
if [ "$1" ] && [[ ! ${1:0:1} == "#" ]]; then # blank lines & comments ignored
((counter++))
echo "Download (feed_$counter.rss): $1"
curl -s -o "Resources/feed_$counter.rss" "$1"
fi
}
while read -r line; do
processLine "$line";
done < "download_list.txt";
processLine "$line"