Respect RBENV_ROOT

This commit is contained in:
Sam Stephenson 2011-09-12 20:28:24 -05:00
parent 4bf5c00830
commit a72a81b911

View file

@ -1,2 +1,9 @@
#!/bin/sh
exec ruby-build $1 ~/.rbenv/versions/$1
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
if [ -z "$RBENV_ROOT" ]; then
RBENV_ROOT="${HOME}/.rbenv"
fi
exec ruby-build "$1" "${RBENV_ROOT}/versions/$1"