Commit 681d6b59 by Sam Stephenson

Simplify shared library function loading

parent db359ec8
...@@ -12,7 +12,7 @@ if [ -z "$RBENV_ROOT" ]; then ...@@ -12,7 +12,7 @@ if [ -z "$RBENV_ROOT" ]; then
fi fi
# Load shared library functions # Load shared library functions
eval "$(ruby-build --lib)" && lib eval "$(ruby-build --lib)"
usage() { usage() {
{ echo "usage: rbenv install [-k|--keep] [-v|--verbose] VERSION" { echo "usage: rbenv install [-k|--keep] [-v|--verbose] VERSION"
......
...@@ -32,6 +32,7 @@ lib() { ...@@ -32,6 +32,7 @@ lib() {
if [ "$1" == "--$FUNCNAME" ]; then if [ "$1" == "--$FUNCNAME" ]; then
declare -f "$FUNCNAME" declare -f "$FUNCNAME"
echo "$FUNCNAME \"\$1\";"
exit exit
fi fi
} }
......
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