chromedp/contrib/grab-headless_shell.sh
Kenneth Shaw 6ce1f2fdfb Reenabling TestStop
- Added contrib/grab-headless_shell.sh to grab latest headless_shell
- Changed travis config to use contrib/grab-headless_shell.sh
- Reenabled TestStop since Page.stopLoading is now available with latest
  available headless_shell
2017-02-22 07:58:30 +07:00

19 lines
374 B
Bash
Executable File

#!/bin/bash
set -e
OUT=${1:-headless_shell}
VER=$2
if [ -z "$VER" ]; then
VER=$(curl -s https://storage.googleapis.com/docker-chrome-headless/latest.txt|sed -e 's/^headless_shell-//' -e 's/\.tar\.bz2$//')
fi
mkdir -p $OUT
pushd $OUT &> /dev/null
curl -s https://storage.googleapis.com/docker-chrome-headless/headless_shell-$VER.tar.bz2 | tar -jxv
popd &> /dev/null