Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Logga in
isprogram
/
pyenv
spegling av
https://github.com/pyenv/pyenv.git
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Projects
0
Släpp
241
Wiki
Aktiviteter
Bläddra i källkod
put up a note why `version-file-read` is tricky
pull/360/head^2
Mislav Marohnić
13 år sedan
förälder
99551dd1ec
incheckning
21391c8d2f
1 ändrade filer
med
2 tillägg
och
2 borttagningar
Delad Vy
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
libexec/rbenv-version-file-read
+ 2
- 2
libexec/rbenv-version-file-read
Visa fil
@ -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]}"
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara