Fixed test errors, added dynamic resource folder and feed download script
This commit is contained in:
16
RSXMLTests/download_feeds.sh
Executable file
16
RSXMLTests/download_feeds.sh
Executable 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"
|
||||
Reference in New Issue
Block a user