Last active
June 2, 2020 13:15
-
-
Save fantactuka/3228898 to your computer and use it in GitHub Desktop.
Update Chrome driver for mac os
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 | |
# 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 http://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip | |
unzip chromedriver_mac32.zip -d /usr/bin | |
rm chromedriver_mac32.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