This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
pyenv
mirror of
https://github.com/pyenv/pyenv.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
241
Wiki
Activity
Browse Source
fix rbenv-which with system ruby
Don't have `command -v` abort the whole script prematurely.
pull/360/head^2
Roy Liu
14 years ago
committed by
Mislav Marohnić
parent
b5a26936e8
commit
99551dd1ec
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libexec/rbenv-which
+ 1
- 1
libexec/rbenv-which
View File
@ -50,7 +50,7 @@ fi
if [ "$RBENV_VERSION" = "system" ]; then
PATH="$(remove_from_path "${RBENV_ROOT}/shims")"
RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND")"
RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND"
|| true
)"
else
RBENV_COMMAND_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}/bin/${RBENV_COMMAND}"
fi
Write
Preview
Loading…
Cancel
Save