Skip to content

Instantly share code, notes, and snippets.

@amondnet
Forked from ddavison/Linux32.sh
Last active July 12, 2017 02:11
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 amondnet/3b0094773de0ed5182fce9eb10ae24e5 to your computer and use it in GitHub Desktop.
Save amondnet/3b0094773de0ed5182fce9eb10ae24e5 to your computer and use it in GitHub Desktop.
Chromedriver Download Scripts
#!/bin/sh
####
# Author: ddavison
# Description: Download the Linux chromedriver into the current directory
####
function downloadchrome {
# latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
version="2.9"
download_location="http://chromedriver.storage.googleapis.com/$version/chromedriver_linux32.zip"
rm /tmp/chromedriver_linux32.zip
wget -P /tmp $download_location
unzip /tmp/chromedriver_linux32.zip -d .
mv ./chromedriver ./chromedriver.linux
chmod u+x ./chromedriver.linux
}
downloadchrome
#!/bin/sh
####
# Author: ddavison
# Description: Download the Linux chromedriver into the current directory
####
function downloadchrome {
latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
#version="2.9"
download_location="http://chromedriver.storage.googleapis.com/$latest/chromedriver_linux64.zip"
rm /tmp/chromedriver_linux64.zip
wget -P /tmp $download_location
unzip /tmp/chromedriver_linux64.zip -d .
mv ./chromedriver ./chromedriver.linux
chmod u+x ./chromedriver.linux
}
downloadchrome
#!/bin/sh
####
# Author: ddavison
# Description: Download the Mac chromedriver into the current directory
####
function downloadchrome {
#latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
version="2.9"
download_location="http://chromedriver.storage.googleapis.com/$version/chromedriver_mac32.zip"
rm /tmp/chromedriver_mac32.zip
wget -P /tmp $download_location
unzip /tmp/chromedriver_mac32.zip -d .
mv ./chromedriver ./chromedriver.mac
chmod u+x ./chromedriver.mac
}
downloadchrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment