Skip to content

Commit

Permalink
Merge pull request #201 from fgrehm/hooks-support
Browse files Browse the repository at this point in the history
Allow hooks to be defined for rbenv-install
  • Loading branch information
sstephenson committed Aug 16, 2012
2 parents 172b068 + cb2a79f commit 5a67dde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/rbenv-install
Expand Up @@ -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}"

Expand Down

0 comments on commit 5a67dde

Please sign in to comment.