-
Notifications
You must be signed in to change notification settings - Fork 18
/
test.sh
executable file
·18 lines (17 loc) · 710 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#just a test script to check chrome driver installation
RES="$(google-chrome --version)"
RES="$(echo $RES | cut -d' ' -f3)"
A="$(echo $RES | cut -d'.' -f1)"
if [[ $A == "79" ]];
then
echo "Getting chrome driver for version 79 ..."
sudo wget -P /usr/local/bin/ https://chromedriver.storage.googleapis.com/79.0.3945.36/chromedriver_linux64.zip
sudo unzip /usr/local/bin/chromedriver_linux64.zip -d /usr/local/bin
fi
if [[ $A == "80" ]]
then
echo "Getting chrome driver for version 80 ..."
sudo wget -p /usr/local/bin https://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_linux64.zip
sudo unzip /usr/local/bin/chromedriver_linux64.zip -d /usr/local/bin
fi