mirror of
https://github.com/google/blockly.git
synced 2026-01-12 19:37:08 +01:00
17 lines
546 B
Bash
Executable File
17 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
os_name=`uname`
|
|
chromedriver_dir="chromedriver"
|
|
if [ ! -d $chromedriver_dir ]; then
|
|
mkdir $chromedriver_dir
|
|
fi
|
|
|
|
if [[ $os_name == 'Linux' ]]; then
|
|
cd chromedriver && curl -L https://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip > tmp.zip && unzip -o tmp.zip && rm tmp.zip
|
|
# wait until download finish
|
|
sleep 5
|
|
elif [[ $os_name == 'Darwin' ]]; then
|
|
cd chromedriver && curl -L https://chromedriver.storage.googleapis.com/2.29/chromedriver_mac64.zip | tar xz
|
|
# wait until download finish
|
|
sleep 5
|
|
fi
|