added more debugging for testing on travis
This commit is contained in:
parent
0158dbf23c
commit
c66884831a
|
|
@ -92,17 +92,18 @@ do
|
|||
|
||||
done
|
||||
|
||||
echo "Check url:s $REPORT_DATA_DIR/urls.txt"
|
||||
cat $REPORT_DATA_DIR/urls.txt
|
||||
|
||||
## Remove duplicates
|
||||
cat $REPORT_DATA_DIR/urls.txt | sort -u > $REPORT_DATA_DIR/urls-uniq.txt
|
||||
mv $REPORT_DATA_DIR/urls-uniq.txt $REPORT_DATA_DIR/urls.txt
|
||||
|
||||
declare result=( )
|
||||
result=( )
|
||||
while read txt ; do
|
||||
result[${#result[@]}]=$txt
|
||||
done < $REPORT_DATA_DIR/urls.txt
|
||||
|
||||
cat $REPORT_DATA_DIR/urls.txt
|
||||
|
||||
echo "Fetched ${#result[@]} pages"
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?><document host="'$HOST'" url="'$URL'" date="'$DATE'">' >> $REPORT_DATA_DIR/result.xml
|
||||
|
|
|
|||
Loading…
Reference in New Issue