diff --git a/contrib/grab-headless_shell.sh b/contrib/grab-headless_shell.sh index 5eb2bc2..a7ca45d 100755 --- a/contrib/grab-headless_shell.sh +++ b/contrib/grab-headless_shell.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e +set -ex OUT=${1:-headless_shell} VER=$2 @@ -15,4 +15,12 @@ pushd $OUT &> /dev/null curl -s https://storage.googleapis.com/docker-chrome-headless/headless_shell-$VER.tar.bz2 | tar -jxv +./headless_shell --remote-debugging-port=8222 & + +sleep 1 + +curl -v -q http://localhost:8222/json/version + +killall -9 headless_shell + popd &> /dev/null