Skip to content

Commit

Permalink
Add $DESTDIR support for staging installs. Closes jf#7.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Sep 1, 2011
1 parent 5f8f5a6 commit a06f1a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/rbenv-gemset
Expand Up @@ -57,6 +57,8 @@ case "$1" in
"install")
if [ "$2" == "-g" ]; then
RBENV_PLUGIN_ROOT=/etc/rbenv.d
elif [ -n $DESTDIR ]; then
RBENV_PLUGIN_ROOT=${DESTDIR}
else
RBENV_PLUGIN_ROOT="${HOME}/.rbenv/rbenv.d"
fi
Expand Down

0 comments on commit a06f1a3

Please sign in to comment.