Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dbc93d3

Browse files
committed
Also check if RUBYOPT has changed.
1 parent 4c9317e commit dbc93d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/profile.d/chruby.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function chruby_reset()
1818
1919
function chruby_use()
2020
{
21-
[[ "$RUBY" == "$1" ]] && return
21+
[[ "$RUBY" == "$1" && "$RUBYOPT" == "$2" ]] && return
2222
[[ -n "$RUBY" ]] && chruby_reset
2323
2424
export RUBY="$1"

0 commit comments

Comments
 (0)