Skip to content

Commit ac1c370

Browse files
timwangdevBirmacherAkos
authored andcommitted
Support new ruby path (#78)
1 parent bb449fa commit ac1c370

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

command/rubycommand/rubycommand.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ import (
1313
)
1414

1515
const (
16-
systemRubyPth = "/usr/bin/ruby"
17-
brewRubyPth = "/usr/local/bin/ruby"
16+
systemRubyPth = "/usr/bin/ruby"
17+
brewRubyPth = "/usr/local/bin/ruby"
18+
brewRubyPthAlt = "/usr/local/opt/ruby/bin/ruby"
1819
)
1920

2021
// InstallType ...
@@ -57,6 +58,8 @@ func installType() InstallType {
5758
installType = SystemRuby
5859
} else if whichRuby == brewRubyPth {
5960
installType = BrewRuby
61+
} else if whichRuby == brewRubyPthAlt {
62+
installType = BrewRuby
6063
} else if cmdExist("rvm", "-v") {
6164
installType = RVMRuby
6265
} else if cmdExist("rbenv", "-v") {

0 commit comments

Comments
 (0)