Commit daa4f246 by James Tucker

rbenv-install supports a -k/--keep flag that by default builds under…

rbenv-install supports a -k/--keep flag that by default builds under $RBENV_ROOT/srcs/$VERSION_NAME.
parent 852778e8
......@@ -23,10 +23,14 @@ case "$DEFINITION" in
} >&2
exit 1
;;
"-k" | "--keep" )
[ -z "${RBENV_BUILD_ROOT}" ] && RBENV_BUILD_ROOT="${RBENV_ROOT}/srcs"
RUBY_BUILD_OPTIONS+=" -k"
;;
esac
VERSION_NAME="${DEFINITION##*/}"
PREFIX="${RBENV_ROOT}/versions/${VERSION_NAME}"
ruby-build "$DEFINITION" "$PREFIX"
rbenv rehash
\ No newline at end of file
ruby-build "$DEFINITION" "$PREFIX" "$RUBY_BUILD_OPTIONS"
rbenv rehash
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