Commit 5fd4ec64 by Sam Stephenson

`rbenv install` with no arguments defaults to `rbenv local`

parent 36b2d13b
......@@ -66,7 +66,13 @@ for option in "${OPTIONS[@]}"; do
done
unset VERSION_NAME
# The first argument contains the definition to install. If the
# argument is missing, try to install whatever local app-specific
# version is specified by rbenv. Show usage instructions if a local
# version is not specified.
DEFINITION="${ARGUMENTS[0]}"
[ -n "$DEFINITION" ] || DEFINITION="$(rbenv local 2>/dev/null || true)"
[ -n "$DEFINITION" ] || usage 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment