Files
core/script.sh
2019-10-16 16:36:10 +02:00

17 lines
699 B
Bash

#!/usr/bin/env bash
if [[ "$OSTYPE" == "linux-gnu" ]]; then
echo "linux";
elif [[ "$OSTYPE" == "darwin"* ]]; then
wget http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar -P ./bin
wget https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_mac64.zip -P ./bin
unzip ./bin/chromedriver_mac64.zip -d ./bin
rm ./bin/chromedriver_mac64.zip
java -jar -Dwebdriver.chrome.driver="./bin/chromedriver" ./bin/selenium-server-standalone-3.141.59.jar
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
echo "windows";
else
echo "Don't know how to handle this platform, sorry";
fi