Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
isprogram
/
pyenv
mirror da
https://github.com/pyenv/pyenv.git
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Projects
0
Rilasci
240
Wiki
Attività
Sfoglia il codice sorgente
RBENV_DIR sets the directory from which .rbenv-version files are scanned
pull/360/head^2
Sam Stephenson
15 anni fa
parent
a3deeba0a0
commit
07815769ae
3 ha cambiato i file
con
9 aggiunte
e
7 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+3
-6
bin/ruby-local-exec
+5
-0
libexec/rbenv
+1
-1
libexec/rbenv-version-file
+ 3
- 6
bin/ruby-local-exec
Vedi File
@ -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
Vedi File
@ -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
Vedi File
@ -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"
Scrivi
Anteprima
Caricamento…
Annulla
Salva