Skip to content

Instantly share code, notes, and snippets.

@sadraskol
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadraskol/961aaff7d445b70f84b0 to your computer and use it in GitHub Desktop.
Save sadraskol/961aaff7d445b70f84b0 to your computer and use it in GitHub Desktop.
download and install chromedriver in a bin directory
#! /bin/bash
echo "## dev installation ##"
echo "installling webdriver"
LATEST_RELEASE=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
VERSION=`uname -p`
if [ "$VERSION" = "x86_64" ]; then
WEBDRIVER_PATH="http://chromedriver.storage.googleapis.com/$LATEST_RELEASE/chromedriver_linux64.zip"
else
WEBDRIVER_PATH="http://chromedriver.storage.googleapis.com/$LATEST_RELEASE/chromedriver_linux32.zip"
fi
wget -O bin/chromedriver.zip $WEBDRIVER_PATH
rm -f bin/chromedriver
unzip -o -d bin bin/chromedriver.zip
rm bin/chromedriver.zip
echo "installation done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment