Преглед на файлове

put up a note why `version-file-read` is tricky

pull/360/head^2
Mislav Marohnić преди 13 години
родител
ревизия
21391c8d2f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +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]}"

Зареждане…
Отказ
Запис