Last active
January 10, 2023 16:29
-
-
Save matsubo/ed900c43f9d00c1bc9e24c3873f9efeb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
RUN bin/download-chromedriver.sh && mv chromedriver /usr/local/bin/ |
This file contains hidden or 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 | |
set -e | |
version=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
architecture=`uname -m` | |
if [ $architecture == 'aarch64' ]; then | |
file='chromedriver_mac_arm64.zip' | |
else | |
file='chromedriver_linux64.zip' | |
fi | |
url="http://chromedriver.storage.googleapis.com/${version}/${file}" | |
wget -c -N ${url} && unzip ${file} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment