Last active
August 29, 2015 14:05
-
-
Save sadraskol/961aaff7d445b70f84b0 to your computer and use it in GitHub Desktop.
download and install chromedriver in a bin directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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