From 8fc4926a2b8df5473bd9f85827706481d7759438 Mon Sep 17 00:00:00 2001 From: Tim Wang Date: Mon, 12 Nov 2018 15:07:19 +0800 Subject: [PATCH] Support new ruby path --- command/rubycommand/rubycommand.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/command/rubycommand/rubycommand.go b/command/rubycommand/rubycommand.go index 3a6b938..d1cec73 100644 --- a/command/rubycommand/rubycommand.go +++ b/command/rubycommand/rubycommand.go @@ -13,8 +13,9 @@ import ( ) const ( - systemRubyPth = "/usr/bin/ruby" - brewRubyPth = "/usr/local/bin/ruby" + systemRubyPth = "/usr/bin/ruby" + brewRubyPth = "/usr/local/bin/ruby" + brewRubyPthAlt = "/usr/local/opt/ruby/bin/ruby" ) // InstallType ... @@ -57,6 +58,8 @@ func installType() InstallType { installType = SystemRuby } else if whichRuby == brewRubyPth { installType = BrewRuby + } else if whichRuby == brewRubyPthAlt { + installType = BrewRuby } else if cmdExist("rvm", "-v") { installType = RVMRuby } else if cmdExist("rbenv", "-v") {