Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add $DESTDIR support for staging installs. Closes #7.

  • Loading branch information...
commit a06f1a3120738c7bc11fbd1523d9f658aa3bc2e5 1 parent 5f8f5a6
Jamis Buck authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  bin/rbenv-gemset
2  bin/rbenv-gemset
@@ -57,6 +57,8 @@ case "$1" in
57 57
 "install")
58 58
   if [ "$2" == "-g" ]; then
59 59
     RBENV_PLUGIN_ROOT=/etc/rbenv.d
  60
+  elif [ -n $DESTDIR ]; then
  61
+    RBENV_PLUGIN_ROOT=${DESTDIR}
60 62
   else
61 63
     RBENV_PLUGIN_ROOT="${HOME}/.rbenv/rbenv.d"
62 64
   fi

0 notes on commit a06f1a3

Please sign in to comment.
Something went wrong with that request. Please try again.