mirror of
https://github.com/rbenv/ruby-build.git
synced 2024-12-29 13:15:33 +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
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue