From 57d2ae2f9f969ef53d1c3f0e750a9cc9e194718b Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sun, 3 Sep 2017 08:41:27 +0700 Subject: [PATCH] Minor fix to contrib/grab-headless_shell.sh --- contrib/grab-headless_shell.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/grab-headless_shell.sh b/contrib/grab-headless_shell.sh index a7ca45d..2a21286 100755 --- a/contrib/grab-headless_shell.sh +++ b/contrib/grab-headless_shell.sh @@ -17,10 +17,12 @@ curl -s https://storage.googleapis.com/docker-chrome-headless/headless_shell-$VE ./headless_shell --remote-debugging-port=8222 & +HEADLESS_PID=$! + sleep 1 curl -v -q http://localhost:8222/json/version -killall -9 headless_shell +kill -9 $HEADLESS_PID popd &> /dev/null