#!/usr/bin/env bash set -ex script_dir=$( cd $(dirname ${BASH_SOURCE[0]}); pwd ) version=$(wget -q -O - http://chromedriver.storage.googleapis.com/LATEST_RELEASE) curl -sSL \ http://chromedriver.storage.googleapis.com/$version/chromedriver_linux64.zip \ -o ${script_dir}/chromedriver-linux64.zip unzip -o -d ${script_dir} ${script_dir}/chromedriver-linux64.zip chmod +x ${script_dir}/chromedriver