diff options
| author | Petter Reinholdtsen <pere@hungry.com> | 2017-01-15 00:16:52 +0100 |
|---|---|---|
| committer | Petter Reinholdtsen <pere@hungry.com> | 2017-01-15 00:16:52 +0100 |
| commit | 5124b1beb897c57557fe8b61f41cc086bec6925f (patch) | |
| tree | 401be6b10ebcf0e76efc45c5fc797b5ad11121f4 /runcheck | |
| parent | 473fb4add901dad27a9907ad8a3f7bae0d33b319 (diff) | |
Move code to create KML files to runkml.
Diffstat (limited to 'runcheck')
| -rwxr-xr-x | runcheck | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -11,7 +11,6 @@ if [ "$1" ] ; then fi if [ ! -d har-data ]; then mkdir har-data ; fi -if [ ! -d kml-data ]; then mkdir kml-data ; fi cat $file | while read url ; do case "$url" in http*) @@ -21,11 +20,10 @@ cat $file | while read url ; do kmlfile="kml-data/$filename.kml" if [ ! -e "$harfile" ] ; then echo "info: testing $url" - if phantomjs --ssl-protocol any $basedir/netsniff.js "$url" > "$harfile.new" && + if xvfb-run phantomjs --ssl-protocol any $basedir/netsniff.js "$url" > "$harfile.new" && [ -s "$harfile.new" ] && [ "$(jq -r '.log | .entries | map(.request) | map(.url) | join("\n")' $harfile.new)" ]; then mv "$harfile.new" "$harfile" - $basedir/har2kml "$harfile" > $kmlfile else echo "error: unable to handle $url" if ! rm "$harfile.new" ; then |
