added removal of faulty lines in front of the xml

This commit is contained in:
Peter Hedenskog 2012-08-09 19:05:11 +02:00
parent 48c46082d3
commit ed838c747e
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ do
echo "Analyzing $i"
phantomjs dependencies/yslow.js -f xml "$i" >>"$REPORT_DATA_PAGES_DIR/$pagefilename.xml"
# Sometimes the yslow script adds output before the xml tag, should probably be reported ...
## sed -i "" 's/^.*<?xml/<?xml/' $REPORT_DATA_PAGES_DIR/$pagefilename.xml
sed -i "" '/<?xml/,$!d' $REPORT_DATA_PAGES_DIR/$pagefilename.xml
# Hack for adding link to the output file name
sed -i "" 's/<results>/<results filename="'$pagefilename'">/g' $REPORT_DATA_PAGES_DIR/$pagefilename.xml