Updating grab-headless_shell.sh script
This commit is contained in:
parent
0603a8acd9
commit
5a93845610
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
OUT=${1:-headless_shell}
|
OUT=${1:-headless_shell}
|
||||||
VER=$2
|
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
|
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
|
popd &> /dev/null
|
||||||
|
|
Loading…
Reference in New Issue
Block a user