Skip to content

Instantly share code, notes, and snippets.

@Schwad
Forked from fantactuka/update-chrome-driver.sh
Last active February 6, 2019 14:56
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 Schwad/276785992662f236c8b4cfe23178f3c4 to your computer and use it in GitHub Desktop.
Save Schwad/276785992662f236c8b4cfe23178f3c4 to your computer and use it in GitHub Desktop.
Update Chrome driver for mac os to 2.46
#!/bin/bash
# bash < <(curl -s https://gist.githubusercontent.com/fantactuka/3228898/raw/f0806a64306426ca72f16734ae7cd16c1f84bd87/update-chrome-driver.sh)
echo "Updating Chrome Driver"
sudo su
if [ -e /usr/bin/chromedriver ]; then
rm /usr/bin/chromedriver
echo "Removing current Chrome Driver from /usr/bin"
else
echo "Didn't find Chrome Driver at /usr/bin"
fi
curl -O https://chromedriver.storage.googleapis.com/2.46/chromedriver_mac64.zip
unzip chromedriver_mac64.zip -d /usr/bin
rm chromedriver_mac64.zip
chmod 777 /usr/bin/chromedriver
echo "Congratulations, Chrome Driver successfully updated"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment