Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
isprogram
/
pyenv
réplica de
https://github.com/pyenv/pyenv.git
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Projects
0
Lanzamientos
240
Wiki
Actividad
Explorar el Código
RBENV_DIR sets the directory from which .rbenv-version files are scanned
pull/360/head^2
Sam Stephenson
hace 15 años
padre
a3deeba0a0
commit
07815769ae
Se han
modificado 3 ficheros
con
9 adiciones
y
7 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+3
-6
bin/ruby-local-exec
+5
-0
libexec/rbenv
+1
-1
libexec/rbenv-version-file
+ 3
- 6
bin/ruby-local-exec
Ver fichero
@ -13,11 +13,8 @@
set -e
cwd="$(pwd)"
dirname="${1%/*}"
cd "$dirname"
export RBENV_VERSION="$(rbenv version-name)"
cd "$cwd"
if [ -z "$RBENV_DIR" ]; then
export RBENV_DIR="${1%/*}"
fi
exec ruby "$@"
+ 5
- 0
libexec/rbenv
Ver fichero
@ -27,6 +27,11 @@ else
fi
export RBENV_ROOT
if [ -z "${RBENV_DIR}" ]; then
RBENV_DIR="$(pwd)"
fi
export RBENV_DIR
shopt -s nullglob
+ 1
- 1
libexec/rbenv-version-file
Ver fichero
@ -2,7 +2,7 @@
set -e
[ -n "$RBENV_DEBUG" ] && set -x
root="$
(pwd)
"
root="$
RBENV_DIR
"
while [ -n "$root" ]; do
if [ -e "${root}/.rbenv-version" ]; then
echo "${root}/.rbenv-version"
Escribir
Vista previa
Cargando…
Cancelar
Guardar