Permalink
Browse files

Merge pull request #15 from joefiorini/master

Allow gem executables to take precedence
  • Loading branch information...
2 parents 63827e5 + 3211a6d commit baea33323c41c03b25aec548372100bee9a4ce56 @jamis jamis committed Oct 24, 2011
Showing with 7 additions and 9 deletions.
  1. +7 −9 etc/rbenv.d/which/gemset.bash
@@ -4,12 +4,10 @@ else
RBENV_GEMSET_ROOT="$(rbenv-prefix)/gemsets"
fi
-if [ ! -x "$RBENV_COMMAND_PATH" ]; then
- for gemset in $(rbenv-gemset active 2>/dev/null); do
- command="${RBENV_GEMSET_ROOT}/${gemset}/bin/$RBENV_COMMAND"
- if [ -x "$command" ]; then
- RBENV_COMMAND_PATH="$command"
- break
- fi
- done
-fi
+for gemset in $(rbenv-gemset active 2>/dev/null); do
+ command="${RBENV_GEMSET_ROOT}/${gemset}/bin/$RBENV_COMMAND"
+ if [ -x "$command" ]; then
+ RBENV_COMMAND_PATH="$command"
+ break
+ fi
+done

0 comments on commit baea333

Please sign in to comment.