Skip to content

Commit

Permalink
Respect $PREFIX when accessing /opt/rubies (issue #113).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Mar 6, 2013
1 parent d6e8985 commit 0507719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/chruby/chruby.sh
@@ -1,8 +1,8 @@
CHRUBY_VERSION="0.3.4"

RUBIES=()
[[ -d /opt/rubies/ ]] && RUBIES+=(/opt/rubies/*)
[[ -d "$HOME/.rubies" ]] && RUBIES+=("$HOME"/.rubies/*)
[[ -d "$PREFIX/opt/rubies/" ]] && RUBIES+=("$PREFIX"/opt/rubies/*)
[[ -d "$HOME/.rubies" ]] && RUBIES+=("$HOME"/.rubies/*)

function chruby_reset()
{
Expand Down

0 comments on commit 0507719

Please sign in to comment.