Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
isprogram
/
pyenv
espelho de
https://github.com/pyenv/pyenv.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Projects
0
Lançamentos
241
Wiki
Trabalho
Ver a proveniência
`rbenv-version-name` returns `system` for empty version files.
Closes
#62
,
#65
,
#77
.
pull/360/head^2
Sam Stephenson
há 15 anos
ascendente
579a398e4e
cometimento
db2a94d4bc
2 ficheiros alterados
com
4 adições
e
4 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+2
-2
libexec/rbenv-version-file-read
+2
-2
libexec/rbenv-version-name
+ 2
- 2
libexec/rbenv-version-file-read
Ver ficheiro
@ -13,6 +13,6 @@ if [ -e "$VERSION_FILE" ]; then
break
fi
done < <( cat "$VERSION_FILE" && echo )
else
exit 1
fi
exit 1
+ 2
- 2
libexec/rbenv-version-name
Ver ficheiro
@ -6,8 +6,8 @@ if [ -z "$RBENV_VERSION" ]; then
RBENV_VERSION="$(rbenv-version-file-read "$RBENV_VERSION_FILE" || true)"
fi
if [ "$RBENV_VERSION" = "system" ]; then
echo "
$RBENV_VERSION
"
if [
-z "$RBENV_VERSION" ] || [
"$RBENV_VERSION" = "system" ]; then
echo "
system
"
exit
fi
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar