Skip to content

Instantly share code, notes, and snippets.

@kucaahbe
Created August 13, 2012 12:34
Show Gist options
  • Save kucaahbe/3340236 to your computer and use it in GitHub Desktop.
Save kucaahbe/3340236 to your computer and use it in GitHub Desktop.
chromedriver download and install script
#!/bin/sh
uname -m | grep 86 && ARCH=32
uname -m | grep 64 && ARCH=64
VERSION='21.0.1180.4'
URL="http://chromedriver.googlecode.com/files/chromedriver_linux${ARCH}_${VERSION}.zip"
mkdir -p $HOME/bin
ZIP_ARCH=$HOME/bin/chromedriver-$ARCH-$VERSION.zip
wget $URL -O $ZIP_ARCH
unzip -o $ZIP_ARCH -d $HOME/bin
echo
echo !!! do not forget to add \$HOME/bin to your \$PATH !!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment