Skip to content

Commit

Permalink
Respect RBENV_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Sep 13, 2011
1 parent 4bf5c00 commit a72a81b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/rbenv-install
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a72a81b

Please sign in to comment.