Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve cask not installed issue. change command to brew info #5

Merged
merged 1 commit into from Aug 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bin/selenium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class:Selenium() {
# None
#######################################
Selenium.ConfigureMac() {
this ValidateSeleniumRequiremetns
this ValidateSeleniumRequirements
this DisplaySysmtemConfig
this InstallBrewPackages
this AlertSetEnvironment
Expand Down Expand Up @@ -151,7 +151,7 @@ EOS
# Returns:
# None
#######################################
Selenium.ValidateSeleniumRequiremetns() {
Selenium.ValidateSeleniumRequirements() {
# Check if Java is installed if not then exit
if ! type -p java &>/dev/null; then
output "$(UI.Color.Red)$(UI.Powerline.Fail) Sorry, java NOT found!$(UI.Color.Default)
Expand Down Expand Up @@ -179,7 +179,7 @@ EOS
fi

# Check if brew cask is installed
if ! type -p cask &>/dev/null; then
if ! brew info cask &>/dev/null; then
output "$(UI.Color.Red)$(UI.Powerline.Fail) Sorry, Homebrew-Cask NOT found!$(UI.Color.Default)
$(UI.Color.Green)$(UI.Powerline.PointingArrow) Run the following command to install Homebrew-Cask:$(UI.Color.Default)
brew tap caskroom/cask"
Expand Down Expand Up @@ -216,7 +216,7 @@ EOS
# None
#######################################
Selenium.ConfigureWindows() {
throw "Sorry, currently this script only supporte mac."
throw "Sorry, currently this script only supports mac."
}

#######################################
Expand All @@ -227,7 +227,7 @@ EOS
# None
#######################################
Selenium.ConfigureLinux() {
throw "Sorry, currently this script only supporte mac."
throw "Sorry, currently this script only supports mac."
}

#######################################
Expand All @@ -238,7 +238,7 @@ EOS
# None
#######################################
Selenium.StartServer() {
this ValidateSeleniumRequiremetns
this ValidateSeleniumRequirements

output "$(UI.Powerline.PointingArrow)$(UI.Color.Default) Killing selenium server processes."
killProcess selenium-server
Expand All @@ -255,7 +255,7 @@ EOS
# None
#######################################
Selenium.StartServerInBackground() {
this ValidateSeleniumRequiremetns
this ValidateSeleniumRequirements

output "$(UI.Powerline.PointingArrow)$(UI.Color.Default) Killing selenium server processes."
killProcess selenium-server
Expand Down