Skip to content

Commit

Permalink
Merge pull request rbenv#518 from dpoggi/better-user-specified-defini…
Browse files Browse the repository at this point in the history
…tion-check

Fixes rbenv#517
  • Loading branch information
mislav committed Feb 26, 2014
2 parents a4853d5 + 7b62fcf commit ef2ff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ done
DEFINITION_PATH="${ARGUMENTS[0]}"
if [ -z "$DEFINITION_PATH" ]; then
usage
elif [ ! -e "$DEFINITION_PATH" ]; then
elif [ ! -f "$DEFINITION_PATH" ]; then
BUILTIN_DEFINITION_PATH="${RUBY_BUILD_ROOT}/share/ruby-build/${DEFINITION_PATH}"
if [ -e "$BUILTIN_DEFINITION_PATH" ]; then
DEFINITION_PATH="$BUILTIN_DEFINITION_PATH"
Expand Down

0 comments on commit ef2ff77

Please sign in to comment.