Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
isprogram
/
pyenv
miroir de
https://github.com/pyenv/pyenv.git
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Projects
0
Versions
241
Wiki
Activité
Parcourir la source
put up a note why `version-file-read` is tricky
pull/360/head^2
Mislav Marohnić
il y a 13 ans
Parent
99551dd1ec
révision
21391c8d2f
1 fichiers modifiés
avec
2 ajouts
et
2 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+2
-2
libexec/rbenv-version-file-read
+ 2
- 2
libexec/rbenv-version-file-read
Voir le fichier
@ -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]}"
Écrire
Aperçu
Chargement…
Annuler
Enregistrer