Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
isprogram
/
pyenv
зеркало из
https://github.com/pyenv/pyenv.git
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Projects
0
Релизы
241
Вики
Активность
Просмотр исходного кода
put up a note why `version-file-read` is tricky
pull/360/head^2
Mislav Marohnić
13 лет назад
Родитель
99551dd1ec
Сommit
21391c8d2f
1 измененных файлов
:
2 добавлений
и
2 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+2
-2
libexec/rbenv-version-file-read
+ 2
- 2
libexec/rbenv-version-file-read
Просмотреть файл
@ -5,8 +5,8 @@ set -e
VERSION_FILE="$1"
if [ -e "$VERSION_FILE" ]; then
# Read
and print
the first non-whitespace word from the specified
#
version file
.
# Read the first non-whitespace word from the specified
version file.
#
Be careful not to load it whole in case there's something crazy in it
.
version=""
while read -a words; do
word="${words[0]}"
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить