Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
isprogram
/
pyenv
kopie van
https://github.com/pyenv/pyenv.git
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Projects
0
Publicaties
241
Wiki
Activiteit
Bladeren bron
put up a note why `version-file-read` is tricky
pull/360/head^2
Mislav Marohnić
13 jaren geleden
bovenliggende
99551dd1ec
commit
21391c8d2f
1 gewijzigde bestanden
met
toevoegingen van 2
en
2 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+2
-2
libexec/rbenv-version-file-read
+ 2
- 2
libexec/rbenv-version-file-read
Bestand weergeven
@ -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]}"
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan