mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-07-29 15:19:33 -04:00
17 lines
546 B
Bash
17 lines
546 B
Bash
|
#!/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
|