Allow hooks to be defined for rbenv-install

This commit is contained in:
Fabio Rehm 2012-08-15 23:49:13 -03:00
parent 172b0680da
commit cb2a79f111

View file

@ -61,6 +61,10 @@ done
DEFINITION="${ARGUMENTS[0]}"
[ -n "$DEFINITION" ] || usage 1
for script in $(rbenv-hooks install); do
source "$script"
done
VERSION_NAME="${DEFINITION##*/}"
PREFIX="${RBENV_ROOT}/versions/${VERSION_NAME}"