This file contains 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
install_selenium_server_standalone() { | |
local desired_version=${1:-latest} | |
# Create our shell user | |
init_shell_user "selenium" "*" | |
local selenium_download_site="http://selenium-release.storage.googleapis.com" | |
local selenium_releases=$(curl --silent --show-error "$selenium_download_site" | grep --only-matching --perl-regexp '[0-9\.-\w]+?/selenium-server-standalone.*?\.jar' | sort --reverse) | |
if [ "$desired_version" == "latest" ]; then |