mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
Respect RBENV_ROOT
This commit is contained in:
parent
4bf5c00830
commit
a72a81b911
1 changed files with 9 additions and 2 deletions
|
@ -1,2 +1,9 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
exec ruby-build $1 ~/.rbenv/versions/$1
|
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"
|
||||||
|
|
Loading…
Reference in a new issue