Šī lapa labāk darbojas, ja pārlūkam ir iespējots JavaScript.
Sākums
Izpētīt
Palīdzība
Pierakstīties
isprogram
/
pyenv
spogulis no
https://github.com/pyenv/pyenv.git
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
0
Kods
Problēmas
0
Projects
0
Laidieni
241
Vikivietne
Aktivitāte
Pārlūkot izejas kodu
put up a note why `version-file-read` is tricky
pull/360/head^2
Mislav Marohnić
pirms 13 gadiem
vecāks
99551dd1ec
revīzija
21391c8d2f
1 mainītis faili
ar
2 papildinājumiem
un
2 dzēšanām
Dalītais skats
Salīdzināšanas iespējas
Rādīt statistiku
Lejupielādēt ielāpa failu
Lejupielādēt izmaiņu failu
+2
-2
libexec/rbenv-version-file-read
+ 2
- 2
libexec/rbenv-version-file-read
Parādīt failu
@ -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]}"
Rakstīt
Priekšskatītījums
Notiek ielāde…
Atcelt
Saglabāt